![]() |
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. |
here you go Dark Jedi
http://bbs.gofuckyourself.com/board/...ML/007768.html |
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] |
Thanks ! everything's clear now http://bbs.gofuckyourself.com/board/smile.gif
|
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 |
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).] |
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).] |
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