0
나는 일반적으로 nginx에서 아파치에서 실행되는 내부 프레임 워크를 사용하려고합니다. 나는 htaccess를 변환하는 운이 없었습니다.아파치 nginx에 - htaccess 작동하지 않거나 변환하려고하지 않습니다
나는 http://www.anilcetin.com/convert-apache-htaccess-to-nginx/을 사용해 보았습니다. 나는 그 다음 그것을 직접하기 위해 갔다 (다른 규칙을 생각해 내었다). 그리고 그것은 어느 쪽도 일하지 않는다.
index index.php;
location/{
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?$1 last;
break;
}
rewrite ^/$ /? last;
}
location ~ ^/(assets|robots\.txt|favicon\.ico|license.txt) {
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
내가 변환 할 노력하고있어 htaccess로는 다음과 같습니다 : 여기에 내가 현재 가지고 무엇
DirectoryIndex index.php
RewriteEngine on
RewriteBase/
RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico|license.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
RewriteCond %{QUERY_STRING} .
RewriteRule ^$ /? [L]
사람이 무엇을 잘못 또는 내가 무엇을해야하는지 알고 일이겠습니까?
감사합니다.