Forum Moderators: phranque

Message Too Old, No Replies

getting rid of querystring on rewrite

Set Environment Variables According To URL Parts

         

matc

2:34 pm on Apr 8, 2004 (gmt 0)

10+ Year Member



Hello,

I have a link that has a query string that I would like to drop once rerwritten to the new page.

I've got...
#to catch and rewrite/regEx out rubbish
#RewriteRule (.*) - [e=resort:default]
#RewriteCond %{QUERY_STRING} resort=([^&]+)
#RewriteRule (.*) - [e=resort:%1]

RewriteRule^resort(\.shtml)(.*)$
[domain.co.uk...]

But when this example is rewritten it has index.shtml?resort=blah blah instead of just index.shtml

Can anyone help with this?

cheers, ject

dcrombie

2:56 pm on Apr 8, 2004 (gmt 0)

matc

1:54 pm on Apr 9, 2004 (gmt 0)

10+ Year Member



Brilliant Thanks!