Redirect from a previous url
-
Hi - newbie question
I have a customer who's had previous versions of his website.
Previously it was known as "princess-interiors.co.uk" (been around for a few years) and is now "princess-design.co.uk" (been around also for a few years).
New site is WordPress - what would be the best way to redirect (I have access to the previous version of the site which is still hosted).
I expect it's to use 301, but how would I do that (step by step), and does www. versus non-www need addressing (and how).
Really concerned, as this site has gone to zero organic visits!!
Hoping somebody can help.
Thanks
-
Sorted - thanks
-
Hi Mark,
1. Yes, You have to do that in Previous website from where you want the redirection to happen.
2. Anything whichever works best for you. But Fix one and work on it. check in google which version of your site is indexed more by "site:www.domain.com" and "site:domain.com" . Its easy to decide this way.
Note: Since its wordpress you can do it in the wordpress settings back end.
Related Thread here :
https://moz.com/community/q/changing-url-from-non-www-to-www
-
Hi - thanks for the reply
The previous site was html - there are two points...
1. I understand that it's best to map each page using a 301? - do I do that on the previous website?
2. should I redirect to www or non-www version of new site?
Cheers
M
-
HI Mark,
What CMS is your Previous version of site ? Is it wordpress or using PHP. If you find yourself in a situation where you need to redirect a PHP web page that is outside your WordPress installation, you can use a PHP redirect.
PHP redirect.
You can redirect a PHP page by adding this line of code to the header:
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.yournewwebsite.com");
?>
Note that the “301 Moved Permanently” line is necessary to advise search engines that you are using a 301 redirection. You also need to ensure that this code is placed at the top of the page to ensure the redirection works correctly.
If you would like to use redirection within a theme or plugin you are developing, you can use the WordPress wp_redirect function.
Redirect a Page Using a WordPress Plugin:
One easy solution is Quick Page/Post Redirect Plugin. The plugin allows you to perform 301, 302, 307, or meta refresh redirects. Redirection is a another great plugin that features 404 page monitoring. It will show you exactly what pages are generating 404 page errors and allow you to create 301, 302, and 307 redirects, for each of those links.
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
-
Backlinking and Redirect links
Can anyone please explain the real difference between backlinks, 301 links, and redirect links?which one is better to rank a website? i am looking for the help for one of my website lottery
Link Building | | murataft0 -
Are long URLs bad for SEO?
Hi, I would like to know how bad is the long URLs that I have on my website. At the moment we have 543 long urls and I was wondering how big is the impact in my SEO. Thank you
Link Building | | Blind_Foundation3 -
Authority redirection - 301
Hello! Could you please help me out with below? For example i have a domain www.domain1.com which has authority of 50... and i set redirect 301 to www.domain2.com will the second domain receive first domains authority and rankings? Thanks in advance!
Link Building | | irakli.chkheidze0 -
Correctly Dealing With Redirects
Hi, Hope someone might be able to help me with this. One of our sites was built badly and the orginal url structure was to have mydomain.com/index.php but these have been changed to mydomain.com by a developer who has put the redirects in place. The problem is that in webmaster tools my link count has dropped to 18 from nearly 2300. I am assuming that Google is not seeing the redirect, any advice would be greatly appreciated. Thanks
Link Building | | mitonmark0 -
Is it worth 301 redirecting an old backlink from a 404 to a landing page?
I was reviewing the 404 report in webmaster tools, when I found a 404 back link from a 10 year old forum topic on a very high DA site. It seems the poster did a direct hotlink to a pdf that was on our site a very long time ago, but is now gone so you get a standard "can not be found" page on our site. Is it now worth redirecting the url to an appropriate landing page, considering the age of the post/ link and the sites DA, or is it not worth it because of the age of the link, its a forum, and we are still getting some juice from it anyway despite it being a 404, and won't get much more out of it. Just want to know it good practice if I find many such links (very old links to now 404 pages) Thanks
Link Building | | PaddyDisplays0 -
Backlinks Redirected Temporarily (New to Old)
I have a website of which we are being forced to change the domain name and soon after give the control of the domain name to the corporate office. The corporate office will eventually put a new website up on it. We would like to build more backlinks without the threat of losing all of these backlinks to the corporate site. We were considering to start building backlinks to the new domain with temporary redirects to the old domain but have recently been advised against doing this (threat of Google looking down on this technique). Should we continue to build back links to the old domain, or should we 302 redirect the links to the old domain? Any advice is greatly appreciated!
Link Building | | wishmedia0 -
Creating new url structure for inbound links
In an effort to make is easier for our clients to link to content on our site we intend on creating a simpler url structure for them: site.com/1234 will 301 to site.com/xyz/abc/1234-this-is-where-we-want-you Is there a danger of creating new 301's just for this purpose, the goal here is to make it easier for clients to link to content and thus garner more inbound links.
Link Building | | antiquesearcher0 -
Retain keywords with redirect
I manage a site the sells product A and product B (both major keywords for us). If I buy the url www.productB.com and redirect it to the original website, would the original website gain any benefits in search engines? Would the benefits of having a url with the keyword be lessened because there isn't content hosted there, only a redirect to the original site?
Link Building | | livethesource0