The Little Guy Posted June 23, 2011 Share Posted June 23, 2011 I have this: Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ([0-9a-zA-Z]+?)$ view.php?id=$1 in my php file, I have this <?php echo $_GET['id']; ?> When I load the page, it echos out php from view.php what did I do wrong? Link to comment https://forums.phpfreaks.com/topic/240214-get-parameters-not-right/ Share on other sites More sharing options...
The Little Guy Posted June 23, 2011 Author Share Posted June 23, 2011 Answer: Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ([0-9a-zA-Z]+?)$ view.php?id=$1 Link to comment https://forums.phpfreaks.com/topic/240214-get-parameters-not-right/#findComment-1233885 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.