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
-
Does having '?search' in a URL affect the page quality?
In our Costume Themes category on our website, http://www.costumedirect.com.au/themes/, the links direct to search pages with URLs containing the term '?search'. For example, the 'Edward Scissorhands' link directs to http://www.costumedirect.com.au/search.php?search_query=edward. Will the question mark and 'search' in our URL affect the page quality and rankings? Thank you.
Link Building | | CostumeD0 -
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 -
Not sure which url to use for backlinks
Hi our site, northamericahvac.com automatically goes to http://www.northamericahvac.com/servlet/StoreFront. There isnt anything I can do about it though, because we use prostores which limits things for us. That leads me to ask, when I'm making backlinks would I use northamericahvac.com www.northamericahvac,com, or http://www.northamericahvac.com/servlet/StoreFront.
Link Building | | ithvac0 -
I'm thinking about buying a competitor and 301 redirecting? How much SEO value?
I'm thinking about buying a competitor and 301 redirecting their site to mine. The high level stats are as follows. My site has a DA of 46 and the homepage has a PA of 55. 375 root domains, 170,000 links. The site sells millions of dollars worth of product each year. The competitor (who I had never heard of) has a DA of 58 and a homepage PA of 64. They have 634 root domains and 260,000 links. They aren't selling much of anything (less than 100,000 per year). We might be able to operate their site but I'm concerned about maintaining 2 platforms. My question is about the value of buying this site and 301 redirecting it to my site. Would this create long term SEO value or not? Any examples that have been documented are greatly appreciated.
Link Building | | bradwayland0 -
Do I get any link juice from a PHP header redirect from another site?
For example would: www.site-A.com/click-tracking.php?site=www.site-B.com contain any link juice? Would a 301 redirect be the simple solution?
Link Building | | David_Viciedo0 -
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 -
Should I 301 Redirect The index.html Page?
Hello, As an experiment I am trying to work with an SBI site but am noticing index.html is being forced on me as the homepage. As I understand it's good practice to 301 redirect the index.html page to the to the actual home page. Can someone please confirm that I am right in thinking this? Here is an example: http://www.anguilla-beaches.com/index.html
Link Building | | umtmedia
http://www.anguilla-beaches.com/ According to yahoo 773 links are pointing to the index.html page and 771 links are pointing to the / page. I'm sure Google knows that these are the same pages and does not consider them as duplicate but surely the index.html page should be redirected right? am I going mad here? Now if we look at this site: http://www.jugglenow.com the homepage has 198 links according to yahoo
http://www.jugglenow.com/index.html this page also has 198 links? now I am confused, are these 2 the same page? On this page: http://www.jugglenow.com/juggling-balls.html notice how there is no link to the actual homepage but there is a link to the index.html page. Am I missing something here because I can't figure it out, surely there should be just 1 homepage without a index.html page. Any help would be appreciated0 -
Does google extract out keywords from links that use the url as the anchortext?
If someone formats a link like so: http://www.somedomain.com/keyword1-keyword2/keyword3.php Would you still get a similar anchor text benefit to this link as if it was formated like so: somedomain keyword1 keyword2 keyword3 what i mean is, does google extract out keywords from links that use the url as the anchortext?
Link Building | | adriandg0