Answer the question
In order to leave comments, you need to log in
Rewrite in Nginx downloads php file when navigating through cnc
Good afternoon.
htaccess:
AddDefaultCharset UTF-8
RewriteEngine on
RewriteRule ^show/([0-9]+)/? index.php?module=show&id=$1 [L]]
server {
server_name example.com;
root /home/www/example.com;
index index.php index.html index.htm;
location /show {
rewrite ^/show/([0-9]+)/? "/index.php?m=show&id=$1" last;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question