Welcome! Log In Create A New Profile

Advanced

Rewite .php to end of script name failing

Posted by e8hffff 
Rewite .php to end of script name failing
May 17, 2014 09:53AM
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;
}
...
...
}



Edited 1 time(s). Last edit at 05/17/2014 09:53AM by e8hffff.
Re: Rewite .php to end of script name failing
May 17, 2014 11:54AM
Working. I had to use flag, 'permanent'.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 267
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready