redirect 404 pages to homepage
-
Hello,
I'm puting a new website on a existing domain. In order to not loose the links that point to the varios old url I would like to redirect them to homepage.
The old website was a mess as there was no seo and the pages didn't target any keywords. Thats why I would like to redirect all links to home.
What do you think is the best way to do this ?
I tried to ad this in the .htaccess but it's not working;
ErrorDocument 404 /index.php
Con you tell me how it exacly look?
Now the hole file is like this:
@package Joomla
@copyright Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
@license GNU General Public License version 2 or later; see LICENSE.txt
READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
The line just below this section: 'Options +FollowSymLinks' may cause problems
with some server configurations. It is required for use of mod_rewrite, but may already
be set by your server administrator in a way that dissallows changing it in
your .htaccess file. If using it causes your server to error out, comment it out (add # to
beginning of line), reload your site in your browser and test your sef url's. If they work,
it has been set by your server administrator and you do not need it set here.
Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
Mod_rewrite in use.
RewriteEngine On
Begin - Rewrite rules to block out some common exploits.
If you experience problems on your site block out the operations listed below
This attempts to block the most common type of exploit
attempts
to Joomla!Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]([^)]) [OR]
Block out any script that includes a
-
I'm very confused about where the 404 fits in - are these dead pages? To re-capture the link-juice, you'll need to 301-redirect (which it seems like you're also putting into play). In some cases, if the pages are gone or never existed, just let them be gone. If you take every single URL everyone could ever visit to the home-page, you may generate so many 301s that Google starts to get suspicious. We've seen some issues with this lately. In many cases, it's also just not a good user experience.
-
You should have RewriteEngine : RewriteEngine On and you should be able to access the .htaccess
have you tried using any of the tools in the URLs below
http://www.htaccessredirect.net/
&
This site talks about best practices of implementation you really just need to upload it to the FTP once you've made the changes using the tool in the URL above
http://www.ksl-consulting.co.uk/301-redirect-examples.html
Let me know if I can be of more help.
-
Ok, what Thomas is saying I will consider for some special pages but how do I technically do implement the redirects to home in .htaccess
ErrorDocument 404 /index.php is not working for now!
Is it correct?
RewriteEngine : RewriteEngine On
Do I have to ad something else to .htaccess ?
-
I think I have information that may help you Our little more I have comprised a hope will help you.
this tool will help you quite a bit in the described situation
http://www.htaccessredirect.net/
http://www.seomoz.org/blog/how-to-fix-crawl-errors-in-google-webmaster-tools
http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm
404 page should include a link back to the home page or site map of your website so users can quickly get back to what they were searching for. A search box, if you have a site search, is also a good idea to add to a 404 page. Other then that, keep the page minimal, remove distractions and get the user off the 404 error page as quickly as they got on.
Keep in mind most users may not be so savvy when it comes to Internet jargon so simple explanations in English are key! Although, keeping it minimalist does not have to mean "boring". The steps to make a custom 404 page are simple and this site can explain in detail how to create one depending on your server.
301 Redirects
If you have old pages on your website that you want to remove or rename, use a 301 redirect to preserve search engine rankings and pass on backlinks and/or page rank. You can even redirect whole websites into new ones. It is easy to do and is very search engine friendly.
The term "301" stands for "moved permanently". It is created by using a .htaccess file. Follow this guide to learn how to implement many different types of 301 redirects. When pages are deleted instead of redirected with a 301, they turn into 404s (Not Found Pages).
I want to give credit where credit's due this information directly above was referenced from this website http://www.internetmarketingninjas.com/301.html
sincerely,
Thomas von Zickell
-
I would spread the redirects around as much as possible. If you can give link juice to not only your homepage but all pages your page rank and thus Google search rank will increase once the 301 redirects are indexed by Google. I agree strongly with what Sven Witteveen has said below and would be very inclined to agree with him.
I hope I was of some help to you.
Sincerely,
Thomas von Zickell
Blueprint Marketing
-
Thanks for advise but the home url is:
-
Hi Igrizio,
I'm not entirely sure but could it be that you're redirecting to //index.php instead of /index.php?
You can use this website to see the the statuscode and any redirect locations of a website.
Best of luck,
Sven Witteveen
Expand Online
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Blog page and homepage ranking next to each other for same keyword
Hello, I have my homepage that has been existing for 10 years that is ranked in 18 th position on google for the keyword luxury bike tours. This homepage doesn't have any external link or internal links saying luxury bike tours and nowhere in the title or on the page do I have the word luxury. I only have the words bike and tours. I created a blog page 24 hours ago that has the word luxury, bike and tours in the title and it is ranked in 19 th position just behind my homepage. I am wondering how it can be there and my homepage just be one spot above with all the history and linking it has ? Is it due to the fact that I have the word luxury in the title ? Is it just because my internal linking structure is correct and this blog page is brand new and will my homepage rank higher in the near future but see that I just redid the structure I need to wait a few months ?
Intermediate & Advanced SEO | | seoanalytics0 -
How many links to the same page can there be for each page?
I need to know if I can add more than 2 equal links on the same page, for example 1 link in the header, another in the body and one in the footer
Intermediate & Advanced SEO | | Jorgesep0 -
How I can improve my website On page and Off page
My Website is guitarcontrol.com, I have very strong competition in market. Please advice me the list of improvements on my websites. In regarding ON page, Linkbuiding and Social media. What I can do to improve my website ranking?
Intermediate & Advanced SEO | | zoe.wilson170 -
Using two 404 NOT FOUND pages
Hi all, I was wondering if any of you can advise whether it's no issue to use two separate custom 404 pages. The 404 pages would be different for different parts of the site. For instance, if you're on /community/ and you enter a non-existing page on: www.sample.com/community/example/ it would give you a different 404 page than someone who runs into a non existing page at: www.sample.com/definition/example/ Does anybody have experience with this and would this be fine?
Intermediate & Advanced SEO | | RonFav0 -
410 pages
Do you need to optimize a 410 page like you do for 404 pages? What does a visitor see when a page is 410 compared to a 404?
Intermediate & Advanced SEO | | WebServiceConsulting.com0 -
Better to re-direct to a completely un-related page or 404?
We have about 1000 pages we need to eliminate from our site (of about 18000 URLs). these URLs don't see a ton of traffic, but may have some valuable links. Would we be better to 404 these or re-direct them to our homepage? Could re-directing to our homepage hurt us?
Intermediate & Advanced SEO | | nicole.healthline0 -
Get Duplicate Page content for same page with different extension ?
I have added a campaign like "Bannerbuzz" in SEOMOZ Pro account and before 2 or 3 days i got errors related to duplicate page content . they are showing me same page with different extension. As i mentioned below http://www.bannerbuzz.com/outdoor-vinyl-banners.html
Intermediate & Advanced SEO | | CommercePundit
&
http://www.bannerbuzz.com/outdoor_vinyl_banner.php We checked our whole source files but we didn't define php related urls in our source code. we want to catch only our .html related urls. so, Can you please guide us to solve this issue ? Thanks <colgroup><col width="857"></colgroup>
| http://www.bannerbuzz.com/outdoor-vinyl-banners.html |0 -
302 redirect
Aloha, I do a small study of 302 redirects. I wonder if you have any examples of sites where the use of a 302 is made.
Intermediate & Advanced SEO | | android_lyon
For example, to ski resorts: where there is a summer version and a winter version. In this case, the field of 302 will return the version of the relevant season. ex: http://www.valmorel.com/ >> 302 >> http://www.valmorel.com/fr/hiver/accueil-hiver.html I wonder if the use of 302 is the right solution.
What do you think? D.0