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
-
slug Link redirect to subdomain?
Hi !
Link Building | | Leviiii
Im Levi new here and new in the world of SEO, please dont judge if my questions are silly. Back on the days when the site was built we thought it is a good ideea to have subdomains that together with the domain name represent our main keywords.
ex. https://stansted.tonorwich.uk, https://heathrow.tonorwich.uk, https://luton.tonorwich.uk, https://gatwick.tonorwich.uk. There is content on this subdomains, would it make any difference from SEO perspective if we create slugs that redirect to these subdomains? for example creating https://tonorwich.uk/taxi-minibus-vip-tesla-norwich-to-stansted that redirects to https://stansted.tonorwich.uk ? Or better create these slugs with slightly different content?
Any ideeas would be appreciated.
Thanks in advance!0 -
Does redirected traffic still contribute to SEO?
My company recently rebranded with a new website (and comparatively lower authority). We've built a bunch of backlinks for our old website, which now redirect to the new one, and I was wondering if these still contribute to SEO? Is there a difference in the SEO effect of a direct link versus a redirected one?
Link Building | | Russell_Chua0 -
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 -
Using brand domain for easy verbally said with 301 redirect to exact match.net for a site
I have recently bought an exact match.net for a keyword with no hyphens (on the fence about hyphens, read so many different views on here). From looking around it seems that not all solicited links that I am interested in use anchor text, but more significantly exact match domain would be like automatic anchor text when anyone from the general population posts a link to your site. I sell print books and am thinking of keeping the non-keyword domain in them so they are easy to say and type, while using the exact match domain for everything else online which the non-keyword domain would 301 redirect to. I don't do any programming and will use cPanel on my webhost to do the 301 redirect, I already have one 301 to go to the www subdomain so that would make two 301's. This might sound quite straight forward to many here but it's fairly new to me and I've not seen cPanel mentioned here yet, so was wondering if I am going about it the right way.
Link Building | | Zoolander0 -
URL shortener and backlinks
Are there any SEO benefits drawn from creating backlinks with Google url shortener service(especially for the very deep links) or for the do-follow link juice I have to use a complete address?
Link Building | | SirMax0 -
Shortened url vs. anchor text
Are there any benefits to linking a shortened url vs. an anchor text when I am link building?Would linking via shortened link such as tinyurl cause problems with SERPS? Also, would it be more beneficial to short link to the homepage or landing page?
Link Building | | Modbargains0 -
Separate blog url helpful?
I am managing a website for a hotel brokerage firm. The main URL is www.hotelassetsgroup.com but we started a new blog with the URL www.hotelsforsaleblog.com. We chose the blog URL because it has the words "hotels for sale." The main website has a tab at the top titled "Blog" which links to the blog URL. I am not sure if this is helping us or not because the main URL and blog URL are both competing for the name of the business "Hotel Assets Group." The blog has very little interlinking within the same URL because it mainly links to the main website. Should we combine the two URLs together and just have the blog URL be the same like- hotelassetsgroup.com/blog or something like that?
Link Building | | lwilkins0 -
Backllinks to our site but via redirect (still SEO helpful?)
Hi, A large website may link to us but via their internal redirect mechanism. So it would be somthing like this: [If you select the link, it eventually goes to our site but not from the original page. These links would be placed on lots of pages, but since they would all "pass through" the "redirect" page, it seems not as beneficial from an SEO perspective. Is this reasoning correct? Would google still follow the link and see where it ends up, even though it is via multiple pages? Ideally I'd prefer direct link but how much better is it than the redirect as listed above?](/redirect/rd?site=www.oursite.com/page&trackingparam=111111)
Link Building | | NicB10