PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   How Do I? - vBulletin 3.0.X (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/)
-   -   .htaccess question (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/118359-htaccess-question.html)

Greebo May 19th, 2005 10:31 AM

.htaccess question
 
I don't want to allow hot linking to all of my categories, but I would like to allow it in some of them - the user specific ones which should have their own directory if I understand it right...

Do I need to manually set up the .htaccess in that case? What do I need to put in the /files dir to block hot linking, and in the user dirs to allow it?

Brian May 19th, 2005 10:40 AM

Re: .htaccess question
 
The images are stored according to the userid, so I'm not sure that disabling hotlinking per category would be easy to do.

Greebo May 19th, 2005 10:42 AM

Re: .htaccess question
 
I was looking at the sub dirs under /files, and it looks like the first folder created under /files is based on the category id.

So in theory if my category id for my Member category is 2, couldn't I put an .htaccess file in that dir to override the .htaccess in /files ?

I THINK its just a question of what I need to put into /files/2/.htaccess to override the Rewrite code in /files/.htaccess

I could be completely zonkers on this, tho, I admit. :) Not an apache guru by any measure...

Brian May 19th, 2005 11:34 AM

Re: .htaccess question
 
The files are not stored by the categoryid.

Greebo May 19th, 2005 11:38 AM

Re: .htaccess question
 
Oh, I see... its by each number in the users userid, right? user 257 would go in /files/2/5/7 ...

Yes, I can see how that would make things much more complicated. :/

Brian May 19th, 2005 11:45 AM

Re: .htaccess question
 
Yup, that is how they're stored. Originally the images were going to be stored according to the categoryid, but we opted for this method since it doesn't require the physical images on the server to be moved if you change the image's category and such.

Greebo May 19th, 2005 12:06 PM

Re: .htaccess question
 
Yeah, user ids aren't likely to change.

Hmm - well darn - I was hoping to be able to say "this usergroup can hotlink" and offer it as another feature for subscribers. Ah well, c'est la vie.


All times are GMT -5. The time now is 09:07 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97