GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   how do i redirect my 404 etc traffic on wordpress sites? (https://gfy.com/showthread.php?t=843037)

TommyM 07-22-2008 11:49 AM

how do i redirect my 404 etc traffic on wordpress sites?
 
Hey
I cant seem to be able to add code for redirecting my 404 etc traffic on domains that run wordpress, it always seems to get my the 404 error on my blog, and not redirecting me to what I have set up in htaccess

Axel XXX 07-22-2008 12:21 PM

make 404.php file

TommyM 07-22-2008 12:26 PM

if I edit the 404.php in the wordpress admin and just put in some meta refresh code, it just gets me the standard IE 404 page

KingpinMedia 07-22-2008 12:33 PM

http://urbangiraffe.com/plugins/redirection/

this is what I use - works like a charm.

TommyM 07-22-2008 12:43 PM

tryed that plugin, but it only works if i put in source url, and that I dont know as i dont know all my 404 adresses etc on my sites ;)

Ad3pt 07-22-2008 01:18 PM

Sounds like you're using permalinks.
Try this:
Create a file on your website. Call it onerror.html. It can have just <html></html> in it for all that it matters.
In Wordpress's .htaccess file, add this to the top of the file:

ErrorDocument 401 /path/to/onerror.html

See if that makes any difference. If it doesn't, add another line with 403 instead of 401.

Deej 07-22-2008 01:35 PM

Quote:

Originally Posted by Ad3pt (Post 14490437)
Sounds like you're using permalinks.
Try this:
Create a file on your website. Call it onerror.html. It can have just <html></html> in it for all that it matters.
In Wordpress's .htaccess file, add this to the top of the file:

ErrorDocument 401 /path/to/onerror.html

See if that makes any difference. If it doesn't, add another line with 403 instead of 401.

Name fits :thumbsup

tranza 07-22-2008 01:37 PM

Change your htaccess.

AlienQ - BANNED FOR LIFE 07-22-2008 03:45 PM

LOL, people over complicatingsimple things.

Hello! Fix yer fucking HTACCESS!


All times are GMT -7. The time now is 10:39 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123