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? Quote Link to comment 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 Quote Link to comment 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.