Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /$1.php;
}
}
if ($request_uri ~ "\.php") {
rewrite ^/(.+)\.php$ /$1 permanent;
}
it all turned out like a roving
do not rewrite but redirect
gluing can be done by specifying the canonical url
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question