Forum Moderators: phranque

Message Too Old, No Replies

yet another mod_rewrite question

         

sabongio

3:38 am on Jun 14, 2005 (gmt 0)

10+ Year Member



i'm trying to change the url [localhost...] to display as [localhost...]

this is my rule:


RewriteRule ^w/(\d{5})$ weather.php?zip=$1

I get a 404 everytime i try to access the script from [localhost...]

Any help would be awesome.

jd01

3:54 am on Jun 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi sabongio,

The basic problem is a RewriteRule does not 'see' stuff after the query string (?). This thread should be helpful: Query String [webmasterworld.com]

Hope this helps.

Justin

sabongio

4:36 am on Jun 14, 2005 (gmt 0)

10+ Year Member




RewriteEngine On Options +FollowSymlinks
RewriteRule ^w/(\d{5})$ weather/zip=$1 [QSA, L]

I've managed to change my code to the above but i get a 500 internal server error now. I actually get a 500 error on anything that doesn't exist now =\