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
Post edited at 12:32 pm on Aug. 25, 2008 by ThugAngel
------- a coward dies a thousand deaths...a solider dies but once.
12:30 pm on Aug. 25, 2008 | Joined Mar. 2008 | 161 Days Active Join to learn more about ThugAngelOntario, Canada | StraightMale | 377 Posts | 2045 Points
memorexdl
Advisor
I are tarded dent esk meh
------- No. You have Failed.
12:37 pm on Aug. 25, 2008 | Joined April 2007 | 79 Days Active Join to learn more about memorexdlBermuda | StraightMale | 930 Posts | 686 Points
Tony327
Dairy Product Addict
I believe by having the http:// in the rewrite rule, that forces an address change. Try taking that off (and even the server name variable), and see if that works?
12:38 pm on Aug. 25, 2008 | Joined May 2008 | 169 Days Active Join to learn more about Tony327Georgia, United States | StraightMale | 96 Posts | 1820 Points
Tony327
Dairy Product Addict
(I've done work with htaccess and mod_rewrite on my own before, and have never had to have http://%{SERVER_NAME} in my rewrite rules to accomplish what I wanted to accomplish.)
12:41 pm on Aug. 25, 2008 | Joined May 2008 | 169 Days Active Join to learn more about Tony327Georgia, United States | StraightMale | 96 Posts | 1820 Points
Narfle the Garthok
Dairy Product Addict Patron
Quote: from ThugAngel at 12:30 pm on Aug. 25, 2008
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/
C:/http/ being where the server is. Also, my rewrite works, but I don't want the browser address to change.
------- a coward dies a thousand deaths...a solider dies but once.
12:46 pm on Aug. 25, 2008 | Joined Mar. 2008 | 161 Days Active Join to learn more about ThugAngelOntario, Canada | StraightMale | 377 Posts | 2045 Points
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?
12:55 pm on Aug. 25, 2008 | Joined May 2008 | 169 Days Active Join to learn more about Tony327Georgia, United States | StraightMale | 96 Posts | 1820 Points
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
------- a coward dies a thousand deaths...a solider dies but once.
12:58 pm on Aug. 25, 2008 | Joined Mar. 2008 | 161 Days Active Join to learn more about ThugAngelOntario, Canada | StraightMale | 377 Posts | 2045 Points
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
I'm glad it worked
1:03 pm on Aug. 25, 2008 | Joined May 2008 | 169 Days Active Join to learn more about Tony327Georgia, United States | StraightMale | 96 Posts | 1820 Points