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
-
MOZ indicates 404 page and 0 backlinks, after 301 redirect. The best redirect solution?
Dear MOZers, I have one concern i would like to ask you.. My website have valuable backlinks to the most important page which is awesome. But, some of those backlinks is old URL which is 301 redirected to the URL I use today. As far as i know 301 redirects pass page rank, so it should be alright. (?) Link i use today: domain.com/awesome-url/ My backlink: domain.com/old-boring-url/ 301 redirected to domain.com/awesome-url/ What bothers me is that in MOZ report (Link opportunities) MOZ indicates my important URL (domain.com/old-boring-url/) return 404. But, it is not true. It is 301 redirected to domain.com/awesome-url/ and it works! I am worried i am losing important link juice here(!?) Also, my On Page Grader tool for domain.com/awesome-url/ reports 0 backlinks. And that is not true! I know exactly which websites are linking back, only problem is that those website are using old URL (domain.com/old-boring-url/) to link back to my website. Am i doing something wrong? Is there a better way to redirect and save valuable link juice for my page? Thank you very much! PS The URL was changed in March 2015.
Link Building | | Chemometec0 -
Backlink redirects and resulting SEO impact
Hi, Please see the target URLs on the links in this article: http://www.nextgov.com/technology-news/tech-insider/2015/07/government-hacked-yet-again-its-time-make-government-cybersecurity-national-issue/118561/ As you can see, there is a redirect in place, presumably for tracking purposes. Do these links carry full SEO value?
Link Building | | mikekeeper0 -
URL parameters affecting link juice
I have a couple of quirks in my online shop that I'm ironing out. One of them is adding some URL parameters to product links.ie: website.com/product.html?&cat=0&featured=Y If someone links to this URL, will I get the link juice as if it was website.com/product.html ? I have URL parameters in Webmaster Tools and robots.txt set up to ignore them so they're not in the Google index, but I have found a few websites that have linked to us using these longer URL's and I'm wondering whether to write to them and ask them if they mind changing them or not.
Link Building | | sparrowdog0 -
Gifly.com: url structure for new site with only one kind of page
Hi, we are launching a new site called Gifly.com, it's all about Gifs. At the moment, our robots.txt is blocking everything because we want to have a solid url structure before going public. There is only one kind of page, the permalink which has this form: http://gifly.com/QPmf/ (the four characters 'QPmf' are completely random) What we made different from the multitude of other Gifs site is that we are
Link Building | | mylittlepwny
trying to categorize gifs with hashtags, so we introduced these kind of urls: http://gifly.com/FoYi/
http://gifly.com/FoYi/#fail
http://gifly.com/FoYi/#blonde
http://gifly.com/FoYi/#dumb This was done for several reason, the first is that each gif can have up to 10
hashtags. Another approach to this could have been: http://gifly.com/fail/FoYi/
http://gifly.com/blonde/FoYi/
http://gifly.com/dumb/FoYi/ ...but we will face tons of duplicated contents for search engines because the same gif
would have 10x permalinks this way. The way we use to navigate between hashtags is via buttons/ajax (see the list of hashtags on the left)
We know that google may have a hard time understanding the site's structure, We'd like to know if the current set of urls, as: http://gifly.com/FoYi/
http://gifly.com/FoYi/#fail
http://gifly.com/FoYi/#blonde
http://gifly.com/FoYi/#dumb could be okay if we provide google a solid sitemap. We are thinking about a first sitemap with the list of hashtags,
each hashtag points to a second sitemap containing the list of new gifs uploaded for said hashtag. Thanks! gifly_logo_r_a.gif0 -
Best SEO practice to redirect affiliate link
Hello, I got an affiliate program on my website, that redirects the affiliate link to the main site like: site.com/ads/aff_code/ -> site.com/ (The redirect is done using a 301 status code.) On the redirect process the site stores a cookie to track the affiliate sale. Will Google and others SE follow this permanent redirect, transferring the relevance of this affiliate link to my main site? In other words, if an affiliate does something wrong (like spams), does the bad reputation will be transferred to my main site? Is there a better way to do that from a SEO standpoint? Thanks,
Link Building | | darkmediagroup0 -
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 -
Best SEO Friendly URL
Hi. Currently I'm using the following url: mysite.com/this-is-the-news-title/news-1234 The news title followed by the directory and the news id. Same goes to mysite.com/my-name/user-123 I think its better for SEO since the relevant words (news title and name) are to the left of the link. But some people are saying that this is not good for SEO because crawlers can't "organize" the urls in directories. So they say its better to use: mysite.com/news/this-is-the-news-title/1234 mysite.com/user/my-name/123 Cause then the crawler know what is a news and what is a user. What do you guys think? Thanks.
Link Building | | rapchan0 -
Canonicals Url question
I manage a computer repair company website, www.callnerds.com One of our main marketing strategies are blog articles and press releases to newspappers. Because of this, we have a subfolder for the author of the newspaper articles who is becoming well known, and we wanted a place for people to connect with her personally. on this site callnerds.com/andrea We only publish articles that Andrea writes. Then on the blog we publish all of the articles, including articles that andrea writes, in addition to articles written by everyone else on our staff. i would like suggestions on wether a canonical link on the /andrea site should be used. the canonical link wold point to our blog. Her site is starting to get high quality links from newspapers and magazines, however all of the content on the site is duplicate content of the same article on our blog. Any thoughts?
Link Building | | NerdsOnCall0