![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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
![]() 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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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 / |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |