Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:38 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc