View Single Post
Old 2003-10-17, 10:31 PM   #8
MrHackula
If something goes wrong at the plant, blame the guy who can't speak English
 
MrHackula's Avatar
 
Join Date: Sep 2003
Location: Montana
Posts: 32
I am working it up as we speak. As for the issue you present here... The key is to remember that .htaccess is primarily designed to protect directory contents. Files in the same directory are difficult (not impossible) to protect using .htaccess.

The second example works but ONLY if you have another .htaccess file in the "/other/" directory. That .htaccess file should contain the line:

RewriteEngine off

...for maximum compatibility with scripts and such.


Hope that helps,

Mr. H.



Quote:
Originally posted by urb
Sorry, can I just go off at a tangent here.....

.htaccess for redirection (RewriteCond %{HTTP_REFERER}) goes into a loop when???

When redirecting to the same domain?

eg:

www.site.com/index.html ---(redirect)--> www.site.com/otherpage.html

or does this prevent it?

www.site.com/index.html ---(redirect)--> www.site.com/other/index.html

TIA coz I cannot remember.
__________________
Integrity = Longevity
MrHackula is offline   Reply With Quote