Gossamer Forum
Home : General : Perl Programming :

404 re-direct

Quote Reply
404 re-direct
Hi,

Have you seen anything similar to:
http://www.willmaster.com/...r/404/mr.pl?v=manual

I really need something like this - sadly this is not very stable (only work once in a while..?!?)

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] 404 re-direct In reply to
Have you heard of 'BirdTrap' by BigNoseBird?

http://www.bignosebird.com/carchive/birdtrap.shtml

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] 404 re-direct In reply to
Hi Andy,

Thanks - but it does not seem to be able to handle specific pages.. ie. if someone visit mydomain.com/andy and it does not exist - I want a list and then be able to re-direct future requests of /andy to ex. /cgi-bin/search.cgi?key=andy

Any ideas?

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] 404 re-direct In reply to
Where are you setting up your .htaccess file, and also, what does it now contain? You may need to restart you machine (if you are on a dedicated server).

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] 404 re-direct In reply to
Hi,

I am setting it up on root level and it redirects 404 to /cgi-bin/404.cgi

So I want that 404.cgi script to handle things as per my first post.

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] 404 re-direct In reply to
Do you specifically need a .cgi script to handle it?

I use;

ErrorDocument 404 http://new.linkssql.net

Just put that in a .htaccess file, in your public_html (htdocs, or whatever you use)...and try it again. Seems to work fine for me.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] 404 re-direct In reply to
Hi Andy,

Yes I can use that and it would work to some extend - but the reason I need the handling by a cgi script is because I am moving to a new server (all running on LinksSQL) and hence some very know URL's like /advertising /contact etc that we have been using to promote our site for years will now be in new locations.

So to make it smooth for the user I would like to have a re-direct file that takes care of these known and promoted url's and re-direct them to where Links will be having them.

I know that I could set a load of index pages up in otherwise empty directories and use Meta refresh - but ... life is short :-)

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] 404 re-direct In reply to
for a short time, keep an eye on your error log, and build redirects
of in your .htaccess have it auto forward hits on those paths to the new path
Quote Reply
Re: [zeroisgod42] 404 re-direct In reply to
Thanks - how can I use .htaccess for that - could you give me an example?


Cheers
Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] 404 re-direct In reply to
This this syntax in .htaccess:
Code:
RedirectPermanent /contact http://www.newsite.com/contact/contact.html
EDIT: This should work well for search engines, too. Some will follow it correctly to the new site.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...

Last edited by:

webmaster33: Apr 11, 2003, 10:19 AM
Quote Reply
Re: [webmaster33] 404 re-direct In reply to
Thanks

Klaus

http://www.ameinfo.com