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;
}
...
...
}
server{
if ( $request_uri ~* ^/announce\? ){
rewrite ^/announce(.*)$ /announce.php$1 last;
}
...
...
}