![]() |
help with .htaccess please
yes i know there are probably 812 threads about this on GFy already but with no search feature what good is it?
so can someone plese help me with this? here is what i have so far: ------------------------------------------------------------------------------- RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://slinkylinks.com RewriteCond %{HTTP_REFERER} !^http://www.slinkylinks.com RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.slinkylinks.com/free.htm [L] ErrorDocument 404 http://www.slinkylinks.com/free.htm DirectoryIndex index1.htm ExpiresActive on ExpiresDefault A31536000 ------------------------------------------------------------------------------- i used this to help me http://developers.evrsoft.com/tools-...enerator.shtml then i uploaded to my main directory in ASCII mode and it doesn't work... what did i fuck up? :helpme |
Easton, depending on the server...htaccess files can do strange shit...
Try this one: ----------------------------------------------------------------- AuthGroupFile /dev/null RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://yourdomain.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://yourip.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://yourip/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com80/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://yourdomain.com:80/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://yourip:80/.*$ [NC] RewriteRule .*([jJ][pP][eE][gG]|[jJ][pP][gG]|[gG][iI][fF])$ [F] ErrorDocument 302 http://www.console-hell.com ErrorDocument 400 http://www.console-hell.com ErrorDocument 401 http://www.console-hell.com ErrorDocument 403 http://www.console-hell.com ErrorDocument 404 http://www.console-hell.com ErrorDocument 408 http://www.console-hell.com ErrorDocument 500 http://www.console-hell.com |
thanks dude... i actually think i got it on my own...
i fucked with it a bit and it seems to be working now :) let me test: http://www.slinkylinks.com/images/easton.jpg |
Seems to work here
:thumbsup |
dammit, not any more!!!
i get errors when accessing my TGP now!!! LOL i need help!!! |
ok i tweaked the code to this:
--------------------------------------------------------------------------------- RewriteEngine on RewriteCond %haha123;HTTP_REFERER} !^http://www.slinkylinks.com.*$ [NC] RewriteCond %haha123;HTTP_REFERER} !^http://slinkylinks.com.*$ [NC] RewriteCond %haha123;HTTP_REFERER} !^http://www.slinkylinks.com/.*$ [NC] RewriteCond %haha123;HTTP_REFERER} !^http://slinkylinks.com/.*$ [NC] RewriteCond %haha123;HTTP_REFERER} !^http://www.slinkylinks.com80/.*$ [NC] RewriteCond %haha123;HTTP_REFERER} !^http://slinkylinks.com:80/.*$ [NC] RewriteRule .*([jJ][pP][eE][gG]|[jJ][pP][gG]|[gG][iI][fF])$ [F] ErrorDocument 302 http://www.slinkylinks.com/free.htm ErrorDocument 400 http://www.slinkylinks.com/free.htm ErrorDocument 401 http://www.slinkylinks.com/free.htm ErrorDocument 403 http://www.slinkylinks.com/free.htm ErrorDocument 408 http://www.slinkylinks.com/free.htm ErrorDocument 500 http://www.slinkylinks.com/free.htm and i uploaded it to my main directory, so i assume it will gobern all folders that way... i don't see why this is so hard but it still doesn't work :( |
Try this before your code
Options SymlinksIfOwnerMatch |
great now my TGP and galleries are all down...
is there a way i can undo the .htaccess on the server? |
Yes, if you dont have root access on your box...
Just upload a blank htaccess file. That will clear up anything. |
If you have root access
type ls -ax And you'll see your file there... Then just remove it |
ok thanks, i've reset it to the way it was before i fucked with it
that still leaves me with the AHL problem tho... why is this so hard? LOL |
Here's mine, maybe it will help
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com(/)?.*$ [NC] RewriteRule .*\.(GIF|gif|jpg|jpeg|bmp|mpg|wmv)$ http://www.domain.com/ [R,NC,L] IndexIgnore * RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^.*BackWeb.*$ [OR] RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro.* [OR] RewriteCond %{HTTP_USER_AGENT} ^DISCo\Pump.* [OR] RewriteRule /* http://www.sexsuche.tv/exitcon/get_l...&WMEC=5&nid=42 [L,R] AddType application/x-httpd-php .html AddType application/x-httpd-php .htm ErrorDocument 400 http://www.domain.com/index.html ErrorDocument 401 http://www.domain.com/index.html ErrorDocument 403 http://www.domain.com/index.html ErrorDocument 404 http://www.domain.com/index.html ErrorDocument 500 http://www.domain.com/index.html |
thanks! but why does every single AHL code look so different? it all seems so complicated...
assuming i even get my htaccess code done right, exactly where should i park it? the main root directory? or only in folders that contain images, clips, etc? |
Easton, hit me up on ICQ Friday (or tonight) - Sheri has my # and I'll work with you through this if you're still having probs. :)
|
Quote:
|
All times are GMT -7. The time now is 10:55 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123