How do I set-up a 301 redirect?
-
Moz alerted me to two 404 errors on our website. I am now trying to place a 301 redirect on them. How would I go about accomplishing?
-
Redirect 301 /registerlogin-2/ http://everlastingchanges.com/registerlogin-3/
But please - remove "scheduling" from main homepage that doesn't exist anymore.
-
This should be a suitable guide for you http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html
-
The other is everlastingchanges.com/registerlogin-2/
-
Yes, one is http://everlastingchanges.com/scheduling...
-
Have you got your url? I'll be able to tell you how to do a redirect with that information.
-
Hey Harvey, I appreciate the response. However, I have already read through that information and was unable to locate the exact answer on how to redirect. I was given more information on what is a redirection, url, etc.
-
If you have 404 somewhere inside of your site there is only one way to fix them - fixing URLs. So if on page A i have link to page B that doesn't exist. Robots will crawl page A and seeing about presence of page B. But on checking page B robots will get 404. So it's much better to fix page A to link to page C that exists. And this is for internal sites.
If you have incoming links to 404. Site A page B link to your site X page Y. Since you can't fix page B then you can make 301 redirect on your website and redirect page Y to page Z that exist.
If you have outgoing links to 404. Then try to find update URL/site if they still exist. If doesn't exist anymore try to find replacement or redirect to archive.org. Or update your page that this doesn't exists anymore.
301 redirects are quick to fix with Apache and it's .htaccess. All you need is just to make somewhere line as:
Redirect 301 /dir/page.htm http://www.example.com/new-dir/new-page.html
Redirect 301 /dir/subdir/page.htm http://www.example.com/new-dir/new-subdir/new-page.php
of course this is example and you need to edit them for your specific case. You also must watch http access log for 404s. -
You should be able to find the answer to your question right here: https://moz.com/learn/seo/redirection
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
-
Help with 301 redirects.
Hi, I would like to say thank you in advance to all who help me with my question. MOZ crawl test showed duplicate content for a site that i just finished. I have www.site.com, site.com and site.index.html( all are the home page) So i have decided to 301 redirect all pages to site.com. And I also learned that when you do a 301 redirect all link juice is passed to the page that i redirect to. Here is my question: If someone links to my site using www.site.com instead of site.com in the future, will the 301 redirect still pass the pr to the page?( site.com). Or it only does, at the time of redirect and not in the future. I know this might be a stupid question but i am really new to this and couldn't find an answer for that. Thanks guys
Moz Pro | | Davit19850 -
Temporary Redirects
Hi, I've noticed that most of my temporary redirects are the cause of this parameter. http://www.maddenstudents.com/forum/search.php**?s=2f0b01c7d530cf117a2bbb6811f0b527**&do=finduser&userid=1&contenttype=vBForum_Post&showposts=1 http://www.maddenstudents.com/forum/search.php**?s=2f0b01c7d530cf117a2bbb6811f0b527**&do=finduser&userid=1&searchthreadid=15&contenttype=vBForum_Post&showposts=1 I also noticed that almost all of my duplicate content and duplicate titles are the cause of this parameter. I tried going into google webmasters, but they say i don't need to change anything. How do I get rid of this parameter because it seems to be causing a lot of errors and warning for me.
Moz Pro | | taychatha0 -
Is SEOmoz spider ignoring my redirect?
My client was previously serving their website from both a .co.uk and a .com domain. The DNS for each of these domains was pointing to the same place, rather than redirecting. I saw this as a potential duplicate content problem so I set the .co.uk to 301 redirect on to the .com. As a user, the 301 seems to be working correctly. However, now that I have done this, SEOmoz is picking up thousands of "inbound" links from the .co.uk domain. Essentially, every single link on the internal site, is being duplicated in my stats as an inbound link as well. It appears that the spider is ignoring the redirect. I'm not sure if it's a legitimate issue that will upset Google too, or if it's just a bug with SEOMoz's spider.
Moz Pro | | MadisonSolutions0 -
Bad code on Learn Seo Redirection info Page
Is it just me, or is the Redirection resource page missing the exclamation point (!) in this code. If so, this could really mess someone's site up if they copy and paste. http://www.seomoz.org/learn-seo/redirection http://screencast.com/t/n7lknZ32G9xF Redirecting Canonical Hostnames: The original developers at SEOmoz needed to redirect any requests that do not start with www.seomoz.org to make sure they included the www. They did this not only because it looks better, but to avoid common canonicalization errors. Redirect: http://seomoz.org/To: http://www.seomoz.org/ Redirect: http://mail.seomoz.org/To: http://www.seomoz.org Redirect: http://seomoz.org/somefile.phpTo: http://www.seomoz.org/somefile.php Solution: Add the following directive: RewriteCond %{HTTP_HOST} ^seomoz.org [NC]RewriteRule (.*) http://www.seomoz.org/$1 [L,R=301] Explanation: This directive tells apache to examine the host the visitor is accessing (in this case: seomoz.org), and if it does not equal www.seomoz.org redirect to www.seomoz.org. The exclamation point (!) in front of www.seomoz.org negates the comparison, saying “if the host IS NOT www.seomoz.org, then perform RewriteRule.” In our case RewriteRule redirects them to www.seomoz.org while preserving the exact file they were accessing in a back-reference. *emphasis added by me
Moz Pro | | squareplug0 -
Old Incoming Links Redirected to new pages are not Being Factored on the Open Site Explorer
Hi, My website has been online since 1994. We have old links pointing to pages that no longer exist so what we have done is to create redirects to the specific page where the content is being displayed now. However, when we use the Open Site Explorer, the linking root domains do not show those sites that contain old links pointing to our domain. One good example of this one is: dmoz.org. Am I improperly handling the redirects? Or, what do I have to do so that old links that are being redirected to the new pages where the information is are accounted when calculating domain authority and trust? Thanks, Alex
Moz Pro | | costarica.com0 -
How seomoz sets the country for google to monitor my rankings?
In some of my campaign settings I use specific country for search engine (e.g. "Google Slovakia"). Some times I check the rankings manually too. My process for this: 1. Open a new Chrome incognito window (be sure that that's the only open incognito window) 2. go to google.sk, type in the keyword 3. at the bottom of the page select advanced search, select language: slovak, resubmit the query That's it. With my process, the monitored keywords are not there were seomoz reports them. So the question: with what settings (domain, language anything else) seomoz is tracking the rankings in country specific search engines?
Moz Pro | | Brainsum0 -
301 redirect question from a newb
So, I've been blogging for almost 3 years now. I've always used wordpress, but recently changed from a ProPhoto theme to a Woo Theme (Editorial...don't know if that matters). I've signed up for the SEOmoz website and HOLY CROW I have problems with my website out the wazoo. I am tackling issues one at a time and one of my issues seems to be 301 redirects. If you'd like to see a screen shot of the crawl diagnostics, check it out the attachment. If you'd like screen shots of anything else, just let me know. I'm not sure I'm reading the chart right, but it seems to say that all of my redirecting problems are because my links are redirecting from an http://www..... to a http://http://www... I've been in my wordpress blog post back end and can't seem to figure out how they A. Got like this. and B how to fix it. If I'm reading the chart wrong...definitely let me know. Thank you guys so much in advance! Screen%20Shot%202012-01-01%20at%202.28.19%20PM.png
Moz Pro | | TerraDawn0 -
How can I update On Page Optimization Reports following 301 redirect?
A few weeks ago I ran the SEOMoz On Page Optimization Reports for one of my sites. At the time, the site homepage was duplicated .com/ and .com/index.html (I know!). The On Page Optimisation Reports I ran at the time obviously included both as individual pages. I've now corrected the duplicate issue with a 301 but the On Page Optimization Reports are still looking at the rankings for .com/index.html and therefore showing "not in top 50" for keywords where I'm actually ranking 1st - any idea how I can get the reports to update so they don't continue to look for .com/index.html? Thanks!
Moz Pro | | trbaldwin0