joe2012 Posted August 25, 2008 Share Posted August 25, 2008 So I wrote the following in a .htaccess file: RewriteEngine on RewriteRule ^games$ http://%{SERVER_NAME}/index.php?category=games [R] The problem is that the address in the browser is replaced with 'http://localhost/index.php?category=games', when I want it to remain http://localhost/games/ Does anyone know how I can do this? Thanks, Joe Link to comment https://forums.phpfreaks.com/topic/121294-solved-mod_rewrite/ Share on other sites More sharing options...
joe2012 Posted August 25, 2008 Author Share Posted August 25, 2008 I found the solution I removed the flag and I was also able to remove the server. RewriteEngine on RewriteRule ^games index.php?category=games Link to comment https://forums.phpfreaks.com/topic/121294-solved-mod_rewrite/#findComment-625337 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.