GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Need .htaccess help (https://gfy.com/showthread.php?t=37822)

DarkJedi 08-30-2001 11:02 AM

Need .htaccess help
 
People, i need help setting my own 404 page.
My host told me to use .htaccess file

Ho wdo I install that .htaccess ? and how do i make it ?
Please help. Thanks.

Rocky 08-30-2001 11:05 AM

here you go Dark Jedi
http://bbs.gofuckyourself.com/board/...ML/007768.html

Coke 08-30-2001 11:10 AM

It's pretty easy.
Create a new file with notepad and call it .htaccess Make sure it has no .txt extension.
When write the following into it:

ErrorDocument 404 /404.html

and replace /404.html with any url you want (which should actually exist of course http://bbs.gofuckyourself.com/board/smile.gif ).

------------------
Current Special: Dedicated Servers for less than $2 per GB, including server rental!
Contact me: 17021242 [email protected]

DarkJedi 08-30-2001 11:18 AM

Thanks ! everything's clear now http://bbs.gofuckyourself.com/board/smile.gif

DarkJedi 08-30-2001 11:24 AM

1 more thing.
can i have several of those lines:
RewriteCond %{HTTP_REFERER} !^http://.*yourdomain.com/.*$ [NC]


?
I use 4 domains at 1 hosting account

Amputate Your Head 08-30-2001 11:25 AM

lemme reword this...
yes, you can have multiple lines like that, but your domains each should have their own directories, so you want to create a unique .htaccess file for each domain...

[This message has been edited by Amputate Your Head (edited 08-30-2001).]

DarkJedi 08-30-2001 11:31 AM

I have a complex dir structure:

Public_html - root dir where I have all my files from domain 1 and where sit dirs for other domains.

So i put .htaccess to public_html with protection for domain 1 i think it will block other domains no ?


So I've put protection for all domains into 1 .htaccess and uploaded htaccess into root domain - i think it's working

[This message has been edited by DarkJedi (edited 08-30-2001).]

Amputate Your Head 08-30-2001 01:16 PM

Just create a blank test page and hotlink one of your own pics to test for that, then type in a URL that doesn't exist and see if you go to wherever you specified for the 404s...


All times are GMT -7. The time now is 07:17 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123