Results 1 to 11 of 11
March 10th, 2006, 01:43 PM #1404 Question
I swithched a site form being html based to being phpnuke based. I am getting tons of 404 error for obvious reasons.
Is there a way in cPanel to have all 404 error redirected to the root of the site rather than a cutom 404 page? I think visitors are seeing the 404 and just clicking back.
March 10th, 2006, 01:52 PM #2
March 10th, 2006, 02:09 PM #3Originally Posted by DesignerWiz
March 10th, 2006, 02:19 PM #4
Drop this in your htaccess:
ErrorDocument 404 /404.php
<? header("HTTP/1.0 404 Not Found"); header("Location: http://yourdomain.com"); ?>
March 10th, 2006, 02:24 PM #5
Looks like I can handle that. Do SEs mind it?
March 10th, 2006, 03:34 PM #6
- Join Date
- January 17th, 2005
- Sacramento, CA
or just put your URL... & then there's no need for a 404 page, unless you want to see all the people being redirected thru that page.
ErrorDocument 404 http://www.yourdomain.comHi, I'm a signature.
March 10th, 2006, 03:49 PM #7
Wouldn't it be better to just use mod_rewrite or something similar to either show or redirect people to the right pages instead of the main page?
index.html -> index.php
categories.html -> categories.php
Are the directory structures and the page names the same, just the extensions different?
If there are some exceptions, is it a manageable number?
If so, I would recommend redirecting or mod_rewriting to the similar pages.
March 11th, 2006, 01:18 AM #8
- Join Date
- January 18th, 2005
March 12th, 2006, 03:46 PM #9
Ideally, you want to follow Michael's advice and use a 301 redirect from each old page URL to the new one. With a 301 status code, as the search engines follow the old links they will change them to the new links in their databases.
If you have a lot of pages in the site and the task is too large, use the .htaccess error 404 routine mentioned above and send them to another page. That way, you won't generate a blank error page and you capture any user who finds an old link in a search engine. My preference is always to send them to a seperate error 404 page. If you sell products on your site, it's a great place to display special deals.
A 301 status code causes a search engine to change a URL in their database.
A 404 status code causes them to remove an obsolete URL.There's good, fast and cheap. Pick any two.
[url=http://www.topranksolutions.com]Phoenix SEO[/url] :: [url=http://www.tech-evangelist.com/category/affiliate-marketing/]Affiliate Marketing Tutorials[/url]
March 12th, 2006, 05:32 PM #10
not trying to hijack the thread, but this is similar...
I moved a complete site from a free page at angelfire to a named domain. Is there any way to do a 301 from angelfire to the new pages? I've been trying different ideas, but haven't found one that works yet. Angelfire doesn't want to loose the traffic so they make it hard to forward pages. The site is ranked 6 so I would like the ranking to go with the site if possible.[color=blue]"Those who give up their freedom for a little security deserve neither freedom nor security" - Benjamin Franklin[/color]
March 13th, 2006, 09:28 AM #11
Have you considered using a redirect (option in cpanel) to setup a 301 redirect from your 404 to the new index?
Seems like that would be the easiest.