cooldude832 Posted June 19, 2008 Share Posted June 19, 2008 I am trying to revert all my sites php pages like so http://www.mysite.com/pages/page5.php to http://www.mysite.com/index.php?page=pages/.page5.php I wrote Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase / RewriteCond {REQUEST_URI} !=index.php RewriteRule ^(.+)\.php$ index.php?id=$1 [R] but it makes an infinite loop any ideas? doing this Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase / RewriteCond {REQUEST_URI} !=index.php RewriteRule ^(.+)\.php$ index.php?id=$1 [R,L] gives me the incorrect $1 (its always index) Quote Link to comment https://forums.phpfreaks.com/topic/110845-need-some-help-for-conditional-rewrite/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.