![]() |
![]() |
![]() |
||||
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 |
Join Date: May 2002
Location: Montreal
Posts: 6,797
|
![]() Can you have different 404 .htaccess files in different folders of the same domain? Or will that send the server into a loop?
Ray
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jun 2005
Location: The Netherlands
Posts: 365
|
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/*.*$ http://www.yourdomain.com/404.php?file=%{REQUEST_FILENAME}$1 \ [T=application/x-httpd-php,L] it enables you to create dynamic 404 pages Best Regards, Adult SEO
__________________
The key to get ranked one in Google is to provide the best. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Join Date: May 2002
Location: Montreal
Posts: 6,797
|
Quote:
Ray
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
ErrorDocument 404 /another404.html
Just add it to a .htaccess and stick it in the folder you want a different 404 on. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Join Date: May 2002
Location: Montreal
Posts: 6,797
|
Quote:
Ray
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Join Date: May 2002
Location: Montreal
Posts: 6,797
|
Quote:
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Jan 2005
Posts: 1,648
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Join Date: May 2002
Location: Montreal
Posts: 6,797
|
Quote:
Ray
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Apr 2005
Location: Vancouver, BC
Posts: 3,685
|
Nice info guys !
__________________
Rod Macdonald Mainstream Ad Agency Owner ICQ: 607306 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Feb 2005
Location: Manila
Posts: 400
|
too much .htaccess on a domain slows down a server. creating dynamic 404 pages here is worth a try
![]()
__________________
![]() | offshore solutions | manual labor | staff leasing | and more! Dedicated -Motivated-Managed Employees icq.: 309570461 live chat |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Nov 2004
Location: The middle of nowhere
Posts: 357
|
Ray, hopefully this will help out a bit on top of the answer you've already received.
Apache (the web serving program) reads the httpd.conf file. The httpd.conf file holds all of the settings that the program needs to run. Each .htaccess file builds on the httpd.conf file. Each .htaccess file is in the same format and can even have the same options as found in the httpd.conf file. A good way to think of .htaccess files is that they build on the .htaccess file. As mentioned above, think if you had a whole bunch of .htaccess files in different directories. That would take a long time and a lot of work for Apache to phrase and remember. It's not a big deal on small sites. However, on large sites, it's definatly not a good idea. First, it does slow the whole server down. Also, it becomes a sysadmin nightmare if you need to make a change to more then a couple .htaccess files. The best solution really depends on what you're doing with all the .htaccess files. Maybe Mod_Rewrite is the best solution, or maybe it's just a matter of optimizing your httpd.conf file. Fell free to drop me an ICQ or give me a call in the office.
__________________
![]() Contact Us About Getting Your Paysites Exposed To Millions Of People On The Peer To Peer Networks! ICQ 124-249-781 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Too lazy to set a custom title
Join Date: Jun 2004
Location: Brasil
Posts: 15,778
|
some very helpful info on this thread....
__________________
Do you need cheap, fast and reliable porn website hosting? Host Head is the way to go!! Asian Gay Special | Live on MSN - Live Webcam Chat | Live Adult Webcam Performances | MY SWEET BLACKS LIVE ON CAM Pukka Tranny | Tattooed Shemales | She's A He | Menu Porno | Porn Performances | All Chubby MY ICQ# 169833797 |
![]() |
![]() ![]() ![]() ![]() ![]() |