icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old February 19th, 2008, 1:25 PM   #1 (permalink)
:~: Untsah :~:
Comfy Contributor
 
Teksonic's Avatar
 
Joined in Jun 2003
Lives in Canada, :eh:
Hosted on SH103
241 posts
Gave thanks: 0
Thanked 0 times
.htaccess help

Hey guys. I'm looking for a little .htaccess help.

ok I want to make sure that anytime anyone goes to pinnaclewow.com that it redirects to Pinnacle - The Llane Horde Guild so i'm using.

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^pinnaclewow.com [NC] 
RewriteRule ^(.*)$ http://www.pinnaclewow.com/$1 [L,R=301]
Now i also want hotlinking enabled so I'm using

Code:
RewriteCond %{HTTP_REFERER} !^http://pinnaclewow.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://pinnaclewow.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.pinnaclewow.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.pinnaclewow.com$      [NC]
RewriteRule .*\.(.*)$ - [F,NC]
There are also 2 files i explicitly do not want anyone to access. So i'm using

<Files "filename here">
Order Allow,Deny
Deny from All
</Files>

but when i roll that all together in the .htaccess i get 403'd???

I'm not sure what i'm doing wrong. could someone take a look and let me know what the file should look like. Thanks a lot.
__________________
Iron Circle ~ World of Warcraft Guild Page
Email: Send Mail Here

Server - SH103 ( Running Smooth )
Teksonic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 19th, 2008, 1:30 PM   #2 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,656 posts
Gave thanks: 81
Thanked 128 times
Hopefully someone can answer this question for you, but until then, here is an alternate solution that you could try and get the same results.

Domain Redirection - In Cpanel you are able to setup a redirection of your domain to another domain.

Hotlink Protection - In Cpanel, you can easily enable hotlink protection and even set some sites/links as exceptions, so they may hotlink/direct link files.
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 19th, 2008, 1:37 PM   #3 (permalink)
:~: Untsah :~:
Comfy Contributor
 
Teksonic's Avatar
 
Joined in Jun 2003
Lives in Canada, :eh:
Hosted on SH103
241 posts
Gave thanks: 0
Thanked 0 times
I have tried the cpanel methods, and (i think) because i'm using a customized/edited .htaccess cpanel errors ever time it tries to update it.
__________________
Iron Circle ~ World of Warcraft Guild Page
Email: Send Mail Here

Server - SH103 ( Running Smooth )
Teksonic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 19th, 2008, 1:39 PM   #4 (permalink)
:~: Untsah :~:
Comfy Contributor
 
Teksonic's Avatar
 
Joined in Jun 2003
Lives in Canada, :eh:
Hosted on SH103
241 posts
Gave thanks: 0
Thanked 0 times
as a side note i've also added this, as it looks like some ppl are using the pre NS changed server info to get to the site still.

Code:
RewriteCond %{HTTP_HOST} ^sh133.surpasshosting.com [NC] 
RewriteRule ^(.*)$ http://www.pinnaclewow.com/$1 [L,R=301]
__________________
Iron Circle ~ World of Warcraft Guild Page
Email: Send Mail Here

Server - SH103 ( Running Smooth )
Teksonic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 19th, 2008, 1:48 PM   #5 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,656 posts
Gave thanks: 81
Thanked 128 times
Quote:
Originally Posted by Teksonic View Post
I have tried the cpanel methods, and (i think) because i'm using a customized/edited .htaccess cpanel errors ever time it tries to update it.
Ah, ok. I see now. Aw, sorry I wasn't much help.
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 19th, 2008, 1:51 PM   #6 (permalink)
:~: Untsah :~:
Comfy Contributor
 
Teksonic's Avatar
 
Joined in Jun 2003
Lives in Canada, :eh:
Hosted on SH103
241 posts
Gave thanks: 0
Thanked 0 times
As an update I have all the referrals working, and the file lockouts. it seems that the 403 check is thrown only after i add in the hotlinking prevention.

/grumble
__________________
Iron Circle ~ World of Warcraft Guild Page
Email: Send Mail Here

Server - SH103 ( Running Smooth )
Teksonic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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