Re: [PHP] Mod Rewrite help

2005-03-28 Thread Eli
Brian Dunning wrote: How would I mod_rewrite a request for /baseball.htm into /query.php?q=baseball? This should be doing it as far as I can tell, but for some reason it's not... RewriteEngine on RewriteRule /^(.+).htm$ /query.php?q=$1 RewriteEngine on RewriteRule ^/(.+)\.htm$ /query.php?q=$1 Bu

Re: [PHP] Mod Rewrite help

2005-03-21 Thread Jochem Maas
Mikey wrote: RewriteEngine on RewriteRule /^(.+).htm$ /query.php?q=$1 ^-- this slash looks to me like its in the wrong place. AFAIK you should have that space at the end of your regex after the $ HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] Mod Rewrite help

2005-03-21 Thread Mikey
> RewriteEngine on > RewriteRule /^(.+).htm$ /query.php?q=$1 AFAIK you should have that space at the end of your regex after the $ HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mod Rewrite help

2005-03-21 Thread Brian Dunning
How would I mod_rewrite a request for /baseball.htm into /query.php?q=baseball? This should be doing it as far as I can tell, but for some reason it's not... RewriteEngine on RewriteRule /^(.+).htm$ /query.php?q=$1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Mod Rewrite help

2005-03-21 Thread Richard Davey
Hello Brian, Monday, March 21, 2005, 6:05:59 PM, you wrote: BD> I know this isn't exactly a PHP question, but it's for a PHP site if BD> that helps :) :) BD> How would I mod_rewrite a request for /baseball.htm into BD> /query.php?q=baseball? Definitely more than one way to skin this cat,