如何创建的.htaccess的Ruby on Rails的?Ruby、htaccess、Rails、on

2023-09-02 00:53:27 作者:帝王挥剑指天下

没有人知道在轨道上创建的.htaccess ?指引我请。谢谢你。

does anyone know to create .htaccess on rails? Guide me please. Thanks.

关于

推荐答案

您只需要创建在您的网站文档根.htaccess文件。在Apache中,这将是你的网站的文档根目录(可能是类似/var/www/your_website.com,或任何你指定的)。

You just create the .htaccess file on your website document root. In apache, that would be the document root of your website (could be something like /var/www/your_website.com, or whatever you specified).