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://mza.seotoolninja.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.
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
-
Different URL (not homepage) showing up for main keyword
Hello, When we search for 'boutique hotels' the following URL appears on first page in Google UK: https://www.i-escape.com/united-kingdom/boutique-hotels While we're pleased to be ranking on first page, I was wondering why it hasn't picked up our homepage, as it has for our competitors. Does this simply mean Google deems this page more worthy of first page SERPs? Thanks again for your help Moz community!
Link Building | | iescape0 -
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 -
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 -
Will removing a 301 re-direct from an old spammed URL drop the links from our profile?
Essentially there is an old page that has been the target of an old school link building agency. There is a 301 re-direct from the old page to the newer version. if I drop the 301 re-direct and update our sitemaps. Will those links be removed from our profile? The old URL passes nothing in actual value & a link building campaign has been running on the new page for over a year.
Link Building | | BenjyH0 -
Could google recognize urls in data-attributes?
Hi, could google's crawler recognize the following example as a link and will be crawl the url? any experience? ty for your help
Link Building | | censeo0 -
Better to redirect domain or to link from home page?
Hi, I have a niche directory and sometimes clients remove themselves because they have discontinued their business practice. If they sometimes provide me with their own website (as they will no longer use it either), is it wiser for me to: a) directly point their URL 301 to my own directory b) keep their website as is, and add a url link to my directory in their homepage c) keep their website as is, and add an anchored link with the industry keyword to my directory Thanks! D
Link Building | | Demosthenes0 -
Some doubt about news section URL
I have a simple question, I have a website and i want to create a news category. I want to know what is the best way to create a url friendly for this category. I was looking around for news website like New York Times, and others, they use a format like this for the url http://domain.com/year/month/day/category/ etc. My question is about the use of the date in that format, like subdirectory, can somebody explain me about it. Any reason to use this format? What is the diference between using this format like: http://domain.com/news/çategory/article-date-id.html and this one use for the new york time shown before. Wich one will be work better? Thank You so much for your help
Link Building | | NorbertoMM0