Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2004-09-22, 01:43 PM   #1
selena
Oh no, I'm sweating like Roger Ebert
 
selena's Avatar
 
Join Date: May 2004
Location: On the edge
Posts: 592
Send a message via ICQ to selena
Caution .htaccess idiot at work

I am officially frustrated to tears.

This is my scenario:

I need to be able to allow hotlinking of thumbs for a handful of TGP's. My thoughts were that I could make a directory inside my domain...rather like...

http://www.mydomain.com/shitIwanthotlinked/test.jpg

Inside the folder shitIwanthotlinked I would put the thumbs and a .htacess file. From everything I have read everywhere, I thought I could put

RewriteEngine Off

in the .htaccess file and life would be peachy. They could hotlink, I could use my partner accounts, and the whole world would fill with joy.

But I was oh-so-wrong.

I get my 404 error when I try it. I've also used some of those online testers, and they say my hotlink protection is working just fine and dandy. ~sighs~

Now, I have also read that I can add domains to my main? htaccess and then they would be able to hotlink. I was trying to avoid doing that, as every time I *look* at the htaccess in my root I seem to mess it up.

I am going to try my hosting company again tonight. I really, really like my hosts. This time I wasn't able to make their tech guy understand what I wanted to do. Or I wasn't understanding him, which is more likely.

In the iterim I thought I would ask here. I really need the most stress free way of making this happen, as I'm highly allergic to anything having to do with my server outside of uploading files.
__________________
Doer of Things at
MetArtMoney
Skype selena.delgado9
ICQ 273551440
selena is offline   Reply With Quote
Old 2004-09-22, 01:51 PM   #2
Ramster
Life is good
 
Ramster's Avatar
 
Join Date: Apr 2003
Location: Ottawa, Canada
Posts: 11,867
Send a message via ICQ to Ramster Send a message via AIM to Ramster
The best thing to do is buy another domain and have no htaccess on it and allow toplist banners, thumbs or whatever be hotlinked from that domain.
__________________
Pornstar Legends | Live Cam Model Shows | Hungarian Girls
Skype: robmurray999
Ramster is offline   Reply With Quote
Old 2004-09-22, 02:03 PM   #3
selena
Oh no, I'm sweating like Roger Ebert
 
selena's Avatar
 
Join Date: May 2004
Location: On the edge
Posts: 592
Send a message via ICQ to selena
More than willing to go that route, Ramster. The price of a domain is cheap compared to the headache I have now.

When I do that...well, let me backtrack a little and explain.

In my root, I have an htaccess file that is all that referrer stuff that I don't know what it really means. I just know that every time I buy a new domain, I have to add the domain to what is in root to allow galleries or whatever to be visible.

Then inside each directory I have something like this:

RewriteEngine on
#RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?dommedesires.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]


So then, if I buy a new domain, would I just add it to my list in root, then *not* put the above gibberish in that directory?

I am sorry, I know I don't speak tech language very well. htaccess stuff is like going into the hardware store. I stand there with a deer-caught-in-the-headlights look until someone takes pity on me.

~half teasing smile~
__________________
Doer of Things at
MetArtMoney
Skype selena.delgado9
ICQ 273551440
selena is offline   Reply With Quote
Old 2004-09-22, 04:34 PM   #4
selena
Oh no, I'm sweating like Roger Ebert
 
selena's Avatar
 
Join Date: May 2004
Location: On the edge
Posts: 592
Send a message via ICQ to selena
~jumps up and down in glee~

It works! It works!

I can be hotlinked on my new domain!!!

Thanks, Ramster
__________________
Doer of Things at
MetArtMoney
Skype selena.delgado9
ICQ 273551440
selena is offline   Reply With Quote
Reply


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 05:35 AM.


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