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) Link to comment https://forums.phpfreaks.com/topic/110845-need-some-help-for-conditional-rewrite/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.