Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Rewite .php to end of script name failing

$
0
0
I want to add '.php' to the end of script that has it missing but the rewrite is failing. Not sure what is going wrong.


server{
if ( $request_uri ~* ^/announce\? ){
rewrite ^/announce(.*)$ /announce.php$1 last;
}
...
...
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>