![]() |
![]() |
![]() |
||||
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
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
|
How can you redirect ALL 404 pages on a server to a single php file?
That means on all domains and all subdomains?
Everything redirected to a single php script..
__________________
ICQ: 298-523-037 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Pounding Googlebot
Industry Role:
Join Date: Aug 2002
Location: Canada
Posts: 34,481
|
Can't apache pickup all 404 error codes and forward it to your php script page?
WG
__________________
I play with Google. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,229
|
httpd.conf
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
|
__________________
ICQ: 298-523-037 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
|
also.. can you pass the requested URL to the php script?
__________________
ICQ: 298-523-037 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
keep walking...
Industry Role:
Join Date: Jun 2002
Posts: 7,177
|
you add the htaccess file in the vhosts directory
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Oct 2005
Posts: 3,758
|
add this to a .htacess file and place it as high as possible in the dir structure
ErrorDocument 404 http://domain.com/yourscript.php |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
Quote:
ErrorDocument 404 /yourscript.php and put the script in the main dir
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Aug 2005
Location: NEW ZEALAND
Posts: 1,657
|
or try
RedirectMatch 301 (.*)\.shtml$ http://domain.com/404.php RedirectMatch 301 (.*)\.html$ http://domain.com/404.php RedirectMatch 301 (.*)\.htm$ http://domain.com/404.php RedirectMatch 301 (.*)\.php$ http://domain.com/404.php |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Sep 2005
Posts: 1,026
|
pretty sure you can just edit it in cpanel or httaccess
__________________
ICQ: 471859252 Mailers! ICQ me I want your traffic!!!! We will pay daily, weekly, monthly, WHATEVER! Just contact me and we will get you paid! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
|
Man such alot of clueless people in this thread..
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Feb 2003
Location: CheapAssDesigns.com
Posts: 1,874
|
__________________
CheapAssDesigns.com - when you need quality designs at affordable prices. icq: 230-729-205 info |at| cheap ass designs dot com |
![]() |
![]() ![]() ![]() ![]() ![]() |