Любой может помочь мне, я хочу переписать URL с
http://localhost/auditsi/cms3/index.phpdirMod=jobseeker&dirAct=myaccount&dirPref=view_front&dirMn=lWU=
до
http://localhost/auditsi/cms3/jobseeker/myaccount/view_front/lWU=
где /auditsi/cms/ - это каталог.
/auditsi/cms/
мой переписать здесь:
location / { } location /auditsi/cms3/ { index index.php index.html; rewrite ^(.*)/(.*)/(.*)$ /index.php?dirMod=$1&dirAct=$2&dirPref=$3 break; }
Я учусь на вики nginx, но никогда не пользуюсь :(
пожалуйста, помогите мне.
Пожалуйста, попробуйте это:
server { rewrite ^/auditsi/cms3/(.*)/(.*)/(.*)$ /index.php?dirMod=$1&dirAct=$2&dirPref=$3 break; location { } location /auditsi/cms3/ { index index.php index.html; } ....