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
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
> 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
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
RD> Definitely more than one way to skin this cat, but the following will
RD> work:
RD> RewriteEngine on
RD> RewriteRule ^baseball.htm/ /query.php?q=baseball [L]
Erm, self-correcting myself here - don't have the / after .htm!
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP De
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,
I know this isn't exactly a PHP question, but it's for a PHP site if
that helps :) :)
How would I mod_rewrite a request for /baseball.htm into
/query.php?q=baseball?
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7 matches
Mail list logo