Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
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
-
Should backlink URLs include www, https, or both???
My business is located at remotebaba.com, and I am wanting several sites to link to it.
Link Building | | udaipabla
I am only interested in home page at this point, and we are using HTTPS for our site. Which one of these should I have other sites link to (Please provide complete justification):
remotebaba.com (my root domain)
www.remotebaba.com
https://remotebaba.com
https://www.remotebaba.com I really appreciate your help!1 -
Redirecting dofollow, high-domain-authority links from one site to another: good idea?
I have two sites that offer help for freelance writers. The first gets almost no search traffic and is very low priority for me. The second is my main priority and gets substantial search traffic. The low-priority site has a significant number of dofollow backlinks from high-domain-authority sites. Is it a good idea to 301 redirect these links to similar/related posts on my high-priority site? Would this potentially boost the SEO of my high-priority site? Thanks for any help!
Link Building | | John88990 -
Back link from site with DA of 72 to a website domain. Clicking on the link redirects to our website not the attended one.
Hi,
Link Building | | JIMBO16
I've ran a back link check and discovered a good back link to a site which then gets redirected back to my company's website. I have a feeling that an old SEO agency has purchased a small website which has a decent link back from a relevant organisation with a high Domain authority and then redirects the domain to our website to get the link juice. What are your thought on this? Is this really bad practise and possibly damaging? Thanks, Jim0 -
Site URL called out but not clickable.
Hi - I'm after a bit of clarity; if my site URL is referenced in an article, but doesn't actually link through, does this still 'add value' to my seo efforts? Thanks, David
Link Building | | newstd1000 -
Adding keyword to your url
Couldn't find the answer to my question anywhere so I'll give it a try here. If you have a site called www.example.com, and then want to add a keyword to this site, like this: www.example.com/keyword How do you add a keyword to your url like this? Without making the URL with the keyword your "main" URL, meaning you don't have to enter the keyworded URL to get to the homepage (www.example.com), and still rank better on the keyword put in the url. I'm a bit confused on the subject, would love for someone to help me understand! Thanks.
Link Building | | danielpett0 -
Does the complete url count as backlink?
Hi there, does the http://mysite.com count as a backlink if posted on a site? I post a press releae and the site only allows me to put urls like this. they get something or must be in anchor the url? Thanks
Link Building | | nyanainc0 -
Are backlinks to a domain that redirects useless?
I am working on trying to get backlinks. We are currently redirecting a few Domains to our current domain name. One of the Domains that is redirecting is the main Domain, we will be advertising in the near future. Can I send backlinks to the redirected URL or does it only carry link juice if it is to the main Domain?
Link Building | | hfranz0 -
Index.php OR .php - Which is better for urls
I was wondering. When I build links should I build them using "index.php" OR ".php" at the end? Does one have any more value than the other from an SEO standpoint Example: www.mywebsite.com\hotdogs\index.php or www.mywebsite.com\hotdogs.php
Link Building | | openspan0