【发布时间】:2015-12-16 02:43:14
【问题描述】:
我使用在线转换器尝试将我的 htaccess for pyrocms 转换为 nginx 可读的内容,因为我不断收到 404 错误。
转换器给了我这个:
# nginx configuration
location ~ 403 {
rewrite ^(.*)$ ^/.*/(system/cms/cache|system/codeigniter|system/cms/config|system/cms/logs|\.git|\.hg).*$ redirect;
}
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php/$1 break;
}
rewrite ^(.*)$ /index.php?/$1 break;
}
我需要在哪里将它添加到我的文件系统中? Debian 操作系统
【问题讨论】:
标签: .htaccess nginx debian http-status-code-404