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
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 01-21-2005, 01:12 PM   #1
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
.htaccess question

I want to configure the below .htaccess for all my websites.

1) Is there a way to do this without individually changing the http://url individually for each website?

2) Is there a way in WHM to automatically add a .htaccess file to all newly added websites on the server?


ErrorDocument 400 http://www.mydomain.com
ErrorDocument 401 http://www.mydomain.com
ErrorDocument 403 http://www.mydomain.com
ErrorDocument 404 http://www.mydomain.com
ErrorDocument 500 http://www.mydomain.com

Hope someone can help
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2005, 01:29 PM   #2
dnsmonster
Confirmed User
 
Join Date: Jul 2002
Location: A warm place.
Posts: 634
Create one file and then symlink (man ls) it to all the other directories.
__________________
I couldn't possibly know what I'm talking about, I'm completely, absolutely and definitively out of my fucking mind.
dnsmonster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2005, 01:36 PM   #3
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
Thanks dnsmonster, do you know how I would do this in WHM? I am a newbie Also, what would I recode the .htaccess file so that I don't have to change the url each time, example:

ErrorDocument 400 http://www.mydomain.com
ErrorDocument 401 http://www.mydomain.com
ErrorDocument 403 http://www.mydomain.com
ErrorDocument 404 http://www.mydomain.com
ErrorDocument 500 http://www.mydomain.com

ErrorDocument 400 http://www.mydomain1.com
ErrorDocument 401 http://www.mydomain1.com
ErrorDocument 403 http://www.mydomain1.com
ErrorDocument 404 http://www.mydomain1.com
ErrorDocument 500 http://www.mydomain1.com

ErrorDocument 400 http://www.mydomain2.com
ErrorDocument 401 http://www.mydomain2.com
ErrorDocument 403 http://www.mydomain2.com
ErrorDocument 404 http://www.mydomain2.com
ErrorDocument 500 http://www.mydomain2.com
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2005, 01:53 PM   #4
wahooter
Registered User
 
Join Date: Dec 2004
Location: san diego
Posts: 50
Sends them to the root of whichever domain they visited.

ErrorDocument 400 /
ErrorDocument 401 /
ErrorDocument 403 /
ErrorDocument 404 /
ErrorDocument 500 /
__________________

www.wahoothumbs.com
wahooter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2005, 02:21 PM   #5
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
Ok thanks, so I do not have to do any /home/name/www thing right? just /?

Also what about configuring in WHM to add this as a default for all domains? Merci!
mkx 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



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.