Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-30-2001, 11:02 AM   #1
DarkJedi
No Refunds Issued.
 
DarkJedi's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
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.
DarkJedi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2001, 11:05 AM   #2
Rocky
Confirmed User
 
Join Date: Jul 2001
Location: Living Off The Grid
Posts: 3,022
here you go Dark Jedi
http://bbs.gofuckyourself.com/board/...ML/007768.html
Rocky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2001, 11:10 AM   #3
Coke
Confirmed User
 
Join Date: Feb 2001
Posts: 108
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 ).

------------------
Current Special: Dedicated Servers for less than $2 per GB, including server rental!
Contact me: 17021242 [email protected]
Coke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2001, 11:18 AM   #4
DarkJedi
No Refunds Issued.
 
DarkJedi's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
Thanks ! everything's clear now
DarkJedi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2001, 11:24 AM   #5
DarkJedi
No Refunds Issued.
 
DarkJedi's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
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
DarkJedi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2001, 11:25 AM   #6
Amputate Your Head
There can be only one
 
Amputate Your Head's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
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).]
Amputate Your Head is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2001, 11:31 AM   #7
DarkJedi
No Refunds Issued.
 
DarkJedi's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
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).]
DarkJedi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2001, 01:16 PM   #8
Amputate Your Head
There can be only one
 
Amputate Your Head's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
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...
Amputate Your Head is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.