Welcome! Log In Create A New Profile

Advanced

general rule for rewrite

July 25, 2011 08:35AM
I use this rewrite rule to create SEO friendly urls
rewrite ^/search/(.*).html /search.php?q=$1 last;

I have similar rewrites too; I wonder if it is possible to write a general rule to do so for all php files?
I mean rewrites filename.php?q=something to /filename/something.html

instead of writing a rewrite rule for each php file
Subject Author Posted

general rule for rewrite

etrader July 25, 2011 08:35AM

Re: general rule for rewrite

António P. P. Almeida July 25, 2011 08:58AM

Re: general rule for rewrite

António P. P. Almeida July 25, 2011 09:04AM

Re: general rule for rewrite

António P. P. Almeida July 25, 2011 09:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 63
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready