Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

htaccess RewriteRule - regexp problems

Status
Not open for further replies.

dbrb2

Instructor
Jul 19, 2004
121
GB
Hi - I'm having saome trouble with my htaccess redirect, and hoped someone could help:

I have a php page here:


I am trying to ensure that anybody visiting this directory gets sent to this page automatically. However, I also want to ensure that if the request is as follows:

?file=something.json

(where something can be any string) Then they are not redirected, and the url parameter is kept. I'm sure I can do this with reqriteRule, but can't work out ho to specify a match on anything BUT a certain string...

Cheers,

Ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top