PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old May 19th, 2005, 11:31 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 41
.htaccess not operating on subdirs recursively?

I have the .htaccess option enabled. The .htaccess file seems to be working fine in /gallery/files, but files uploaded to subdirs are benig hotlinked. See this thread on a different site (completly different site) http://forums.legendsofwestwood.org/...ad.php?p=70638

The first post by me (as Greebo) in that thread refers to pilotsofamerica.com/gallery/files/1/... but the second post by me refers to .../gallery/files/...

I'm told the 2nd pic is not visible to others (the image being cached on my machine) but the first one is.

What do I need to do to make the .htaccess restrictions apply to sub dirs?
Greebo is offline  
Old May 19th, 2005, 11:42 AM   #2 (permalink)
Brian
Guest
 
Posts: n/a
Re: .htaccess not operating on subdirs recursively?

Actually, it looks like this is a problem with the extensions, not the folder. You'll see that your first image has an extension of 'JPG', but the other has 'jpg'. If you'll look in your forum/admincp/vba_gallery_admin.php file for this code:
Code:
Content visible to verified customers only.
Replace it with this:
Code:
Content visible to verified customers only.
Then turn your .htaccess protection off and then back on again (to update the file) then that should take care of the problem.
 
Old May 19th, 2005, 11:46 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 41
Re: .htaccess not operating on subdirs recursively?

I will try this, but shouldn't the NC option nullify that issue?
Greebo is offline  
Old May 19th, 2005, 11:48 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 41
Re: .htaccess not operating on subdirs recursively?

I'm referring to the contents of the .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?pilotsofamerica.com(/)?.*$ [NC]
RewriteRule .*\.(avi|bmp|gif|jpeg|jpg|midi|mp3|mpeg|mpg|pdf|png|ram|wav|wma|wmv)$ [F,NC]
Greebo is offline  
Old May 19th, 2005, 12:02 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 41
Re: .htaccess not operating on subdirs recursively?

Obviously not. I appiled the change recommended, and it did resolve the issue.

I didn't recognize that I was changing the code that actually rewrite the .htaccess file. Thanks much.

If I may recommend a future modification: an option to have .htaccess serve up something else like a "Hot Link Rejected" graphic would be a nice extra perk.

In any event, thanks much!
Greebo is offline  
Old May 19th, 2005, 12:07 PM   #6 (permalink)
Ultimate Member
Verified Customer
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 2,240
Send a message via MSN to mholtum Send a message via Yahoo to mholtum
Re: .htaccess not operating on subdirs recursively?

Quote:
Originally Posted by Greebo

If I may recommend a future modification: an option to have .htaccess serve up something else like a "Hot Link Rejected" graphic would be a nice extra perk.

In any event, thanks much!
Here is what I use:
Code:
Content visible to verified customers only.
it serves up an image.
Just use your imagination and it can be quite fun
mholtum is offline  
Old May 19th, 2005, 12:14 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 41
Re: .htaccess not operating on subdirs recursively?

I may just use that.

Not the image...the idea.

(Our users probably wouldn't much appreciate that image... )
Greebo is offline  
Old May 19th, 2005, 12:16 PM   #8 (permalink)
Ultimate Member
Verified Customer
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 2,240
Send a message via MSN to mholtum Send a message via Yahoo to mholtum
Re: .htaccess not operating on subdirs recursively?

They will never see it unless they try to steal your bandwidth..
mholtum is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hotlinking and .htaccess tmhall vBGallery Suggestions 25 February 12th, 2008 02:19 AM
Changing operating systems install proplem emanon10 Photopost Pro Installation & Upgrades 10 August 17th, 2005 05:24 PM
.htaccess question Greebo How Do I? - vBulletin 3.0.X 6 May 19th, 2005 12:06 PM
Is this possible with a .htaccess file? Johnny Doomo General Discussion 1 March 31st, 2005 07:42 PM
.htaccess oldengine Bugs From 1.0.0 2 February 14th, 2005 10:03 AM


All times are GMT -5. The time now is 11:50 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0