Monday, 15 July 2013

.htaccess - htaccess rewrite query string for all pages -


I have this and what it does, this query string changes as you will see in the example below: < / P>

  & lt; IfModule mod_rewrite.c & gt; # Option Allow all directories index index.php RewriteEngine On RewriteBase / folder / RewriteRule ^ Page /([^/.]+)/?$ otherpage.php? Id = $ 1 [L] & lt; / IfModule & gt;  

So if I have the link:

This will allow htaccess to use that link:

< /

P>

and mypage2.php, andpage3.php, etc.

Try adding this rule:

  ([^ /.] +) / Page / ([0- 9] +) $ / $ 1.php? Id = $ 2 [L]  

No comments:

Post a Comment