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
Quote: from Tony327 at 3:55 pm on Aug. 25, 2008 Quote: from ThugAngel at 3:46 pm on Aug. 25, 2008 If I don't put the http://%{REMOTE_HOST}/ I this error http://localhost/C:/http/index.php?category=games C:/http/ being where the server is. Also, my rewrite works, but I don't want the browser address to change. This might not be relevant, but, why do you have the [R] flag? Have you tried taking it off, and seeing what that does? LOL that worked!! thanks! also when removing that I didn't need to specify the whole server. Code: RewriteEngine on RewriteRule ^games index.php?category=games
Quote: from ThugAngel at 3:46 pm on Aug. 25, 2008 If I don't put the http://%{REMOTE_HOST}/ I this error http://localhost/C:/http/index.php?category=games C:/http/ being where the server is. Also, my rewrite works, but I don't want the browser address to change. This might not be relevant, but, why do you have the [R] flag? Have you tried taking it off, and seeing what that does?
If I don't put the http://%{REMOTE_HOST}/ I this error http://localhost/C:/http/index.php?category=games C:/http/ being where the server is. Also, my rewrite works, but I don't want the browser address to change.
http://localhost/C:/http/index.php?category=games
C:/http/ being where the server is. Also, my rewrite works, but I don't want the browser address to change.
This might not be relevant, but, why do you have the [R] flag? Have you tried taking it off, and seeing what that does?
LOL that worked!! thanks! also when removing that I didn't need to specify the whole server.
I'm glad it worked
So I wrote the following in a .htaccess file: Code: 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
you are telling it to point to http://localhost/index.php?category=games
http://www.ecauldron.com/web/design020.php
Read that it will help you understand where you went wrong.