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
-
Is it a good practice to get link for your original page by shorter URL links
Hello Moz Community, I have a question regarding getting links on bitly, tiny, or an other url shortner, Is it a good practice to get link for your page by shorter url I mean lets suppose i am getting natural guest post link from content for my blog home page
Link Building | | JoeySolicitor
https://coupontoaster.com/blog/ ; and shorten it with bitly and then hyper link so is it a good practice am I getting the same power and SEO consideration as if i would have done this without url shortener. And what anchor texts shall i be using like rich anchor text or any other like click here, visit here, bitly or etc Please kindly help me with this thanks1 -
Buy domain, redirect, get all the good links (+link juice) and disavow the spammy ones?
There is a domain for sale that has a quite nice profile and a lot of good backlinks, but also quite a few spammy ones. This domain has a Spam Score of 14% acc. to Moz Link explorer, ours has only 2%. My questions: 1. The domain and the good backlinks are related to or close to our content/keywords. But we are worried whether the "spammy" ones will hurt us. Does anyone has experience with this? 2. Would it help if we disavow the spammy backlinks afterwards? And if so, how do we do that? Add new domain to search console, disavow the bad links and then redirect the entire domain to our domain or redirect the domain first and then disavow from our property? Many thanks for your help!
Link Building | | pissuptours0 -
Existing links on domain with previous history - keep or disavow?
Our client has bought a domain with a history for a different type of venue in another location. Inbound links exist related to this prevous venue - should we disavow these?
Link Building | | designlobby0 -
Bought links from sites with target keyword in their URL
One of my rivals in a competitive field (real estate) has done this deliberately and extensively -- it accounts for about 2/3 of his inbound links. Result: he's now #1. How strong a ranking factor is keywords in source URL - ie, how easy is it to beat with other ranking factors?
Link Building | | Jeepster0 -
Exact Domain Match URL
Hello I have a few competitors ranking VERY well for exact keyword match URL. They have a single hosted page, when a customer clicks to buy inventory ir re-directs to there main url. Will google eventually catch on to this? Excellent position, very little backlink/seo work. Is this something that I should also look into for my own site? Thank you!
Link Building | | TP_Marketing0 -
Links built by previous SEO company are mostly 'dead' - will this affect me?
Hi, This is my first post/question in the forum - so apologies if this topic has already been covered - or if the question seems daft! Here's the issue: I have started working on two websites, and have been doing a lot of on-site work, increasing valuable content, etc... I'm now slowly moving onto more off-site stuff and have noticed that a lot of the backlinks to both websites (built by SEO companies before I got here) are 'dead' and simply return 404 errors (yet they still show up in site explorer). I'll be honest, the links aren't great; the SEO companies have taken the word 'relevant' and completely re-defined it in their books! Will these links - from sites that aren't relevant... but are dead - have any impact on my SEO efforts from now on? Or should I treat these sites as a kind of 'clean slate' and work on building the brand naturally through social media and user experience, etc? Also - I'm re-structuring the internal pages of the site... would it be worth re-directing the old URLs (with all the dead in-bound links - that may have suffered a -50 penalty) to the new ones, or just start fresh with the new pages? Any advice, tips or stories to share (relevant ones, of course!) will be greatly appreciated! Thanks, Nick
Link Building | | Danapollo1 -
Urls rewriting "how to" with .htaccess
hi, Please i would need advices (links, tips, tool:generator ?) regarding url rewriting through .htaccess (newbee about it). It's a "refurbishing" website case , the domain doesn't change. But the CMS does ! I've got a list of urls (800) with which i don't want to loose rankings on : Here the type of old url syntax : http://www.mydomain.com/home/newscontent.asp?id=1133 Here the new url type would be: http://www.mydomain.com/name-of-the-article
Link Building | | mozllo
or/and
http://www.mydomain.com/category/Page-2 Tks a lot...0 -
Redirect
A few pages get a lot of external links and rank well (when site:domain.com) but i do not want that those pages rank well (these are blog pages and we are in E-commerce) Can i redirect these pages to other pages which are more important to me and customers because google see only the link or is google so smart that they see a realtion between the page from which i get the links and to the page in my webste In that case i rename the old pages.
Link Building | | turnon0