PDA

View Full Version : .htaccess Redirection



gamew0rld
April 16th, 2003, 14:38
I know how to redirect a single page to another single page in the .htaccess, and I also know how to redirect a whole directory to another whole directory, but how would I redirect a whole directory to a single page? Would it use wildcards? I have tried many things but I cant get it to work. Thanks in advance.

gamew0rld
April 16th, 2003, 15:05
i figured it out, but i cant see the pages i am trying to edit. Is there a way to redirect everyone to another page except from my IP address?

Danzig
April 18th, 2003, 19:49
mmm I was toying around with something similar some months ago and finally got it to work with a row like this.


RewriteCond %{HTTP_REFERER} !^http://your.ip.number [NC]

Hope it works for you. :)

take care