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 06-04-2007, 11:00 PM   #1
Myst
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
Myst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2007, 11:03 PM   #2
WiredGuy
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.
WiredGuy is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2007, 11:04 PM   #3
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,229
httpd.conf
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2007, 11:08 PM   #4
Myst
Confirmed User
 
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
Quote:
Originally Posted by k0nr4d View Post
httpd.conf
ooh how?
__________________
ICQ: 298-523-037
Myst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2007, 11:13 PM   #5
Myst
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
Myst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2007, 01:36 AM   #6
ffmihai
keep walking...
 
ffmihai's Avatar
 
Industry Role:
Join Date: Jun 2002
Posts: 7,177
you add the htaccess file in the vhosts directory
__________________
ffmihai is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2007, 02:06 AM   #7
BucksMania
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
BucksMania is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2007, 03:13 AM   #8
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
Quote:
Originally Posted by BucksMania View Post
add this to a .htacess file and place it as high as possible in the dir structure

ErrorDocument 404 http://domain.com/yourscript.php
setting the script like that will loose the referal url, instead do it like thise

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
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2007, 03:30 AM   #9
bigalownz
Confirmed User
 
bigalownz's Avatar
 
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
__________________
$100 free credit for all hosting needs
bigalownz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2007, 03:33 AM   #10
Well Dunn
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!
Well Dunn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2007, 04:04 AM   #11
ssp
Confirmed User
 
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
Man such alot of clueless people in this thread..
ssp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2007, 06:42 AM   #12
Broda
Confirmed User
 
Join Date: Feb 2003
Location: CheapAssDesigns.com
Posts: 1,874
Quote:
Originally Posted by ssp View Post
Man such alot of clueless people in this thread..
agreed!
__________________
CheapAssDesigns.com - when you need quality designs at affordable prices.
icq: 230-729-205
info |at| cheap ass designs dot com
Broda 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.