301 redirect
-
Guys
Another post by me in regard to a 301 redirect which follows on from this post here
http://www.seomoz.org/q/seomoz-crawl-test
To quickly summarise all i have done is change URL name and done a simple 301 to change name where respective urls form old go to the relevant new pages
Ok Now 14 weeks since we implemented our 301, Originally done In PHP everything looked text book but still 80% down on rankings PR has returned to inner pages Home page has not updated
After some advice from some of the members here i changed the 301 on the old domain name from PHP to Htaccess
This is the code i used on the old server is below
RewriteEngine on RewriteRule ^(.*)$ http://www.newsite.co.uk/$1 [R=301,L]
On the new site the canonical is fixed by PHP , i want to change this to Htaccess, capturing the canonical element along with removing the trailing slash (This is only what has been done in the past so just keeping consistant)
This is the situation
Old site sits on a different server from the new so each have their own individual I.P addresses
I am convinced somewhere in the PHP application we are chaining so want Htaccess on old server to do the 301 and want htaccess on new server to deal with canonical elements and remove trailing slash (if that best practice)
What would be the best way to do this where we wont be chaining 301's
at present all looks perfect and doing what it should, but i know there is an issue and i believe it to be with the php script
Thanks for taking the time to look
Paul
Ps where i had the issue on the old site where Crawl test said page don't exist i now have on the new site if i try and crawl the non www. version of the new site , tested on a site that has the htaccess 301 in place and get the option of crawling the old or the new page so something don't stack up so its not the tool its the PHP
Fetch as Googlebot and every other tool reports the correct header responses
-
Hi Patrick
Thanks for responding
I still have no rankings 80% down, its 14 weeks since i implemented the 301 and some of the inner pages are ranking (Therese are a lot lower than when we did the 301) however the home page even if i copy a line of text wont bring up my site.
The original 301 went textbook style and everything looked perfect, but rankings did not follow and all we did was a straightforward name change
My developer insisted on doing this in PHP however most his functions and he states when i asked him for the code "The 301 on the new site is integrated into the application and has dependences on other functions, which in turn will have dependences on other functions, which would basically mean handing over a substantial amount of code. Potentially most of the application"
So basically on the outside i am 100% convinced that the 301 is chaining somewhere causing me a problem, so i am going to change both old and new sites for htaccess
I currently have this single line on the old site
RewriteEngine on RewriteRule ^(.*)$ http://www.newdomain.co.uk/$1 [R=301,L]
Originally tried the below but got an internal 500 error (ps any reason why that would give me a internal server error) as below would have been my preferred code
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.com$
RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]I think really what i need is the answer to is what do i put on the old site which is on server 1 is it just a single line 301
and on the new site which is dealing with the canonicals and removal of trailing slash
The original issue came when i changed URL name, and it was only the crawler that brought to light that i could not crawl the non www. version of my site (even though it is the www. version i wanted to crawl because the crawler should have gave a message that the site is 301 to the ww,
. version but it said page unavailable, however doing it on a colleagues site which had been correctly 301'd gave a message that the site had moved do you want to crawl the current or the new page ... so the crawl test will pick up on a 301 if implemented correctly
Hope that made sense
-
Hi Paul,
I've read this post and your initial post and I'm trying to figure out exactly what you are still having problems with. Is the issue that your rankings/traffic tanked after you implemented the 301 redirects from the non-www version of the site to the www version 3 months ago and you haven't seen any improvement since? Or are you just having issues with the SEOmoz site crawler? It really shouldn't matter if you use PHP or .htaccess for handling redirects since they are both on the server side, so there might be something else causing problems. I wouldn't worry about PR since it's natural for it to take awhile to move over to the new version of the page and plus PR by itself is not all that important anyways.
I'm willing to investigate further if you can provide some more details.
- Patrick
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
-
Crawlers reporting upper case letter url versions although these have been 301'd to lower case !?
Hi I have a client e-com site who's dev platform is on a windows server Their product pages have been auto-named after the product title, with the first letter in each word being upper case, which has hence translated to the URL having upper cases instances too. I asked them to set up 301 redirects for all url's that had upper case instances to lower case versions, which they say they have done. However I'm still seeing url's with upper case instances showing up in webmaster tools and moz crawl reports but when I copy & paste them into a browser they do redirect to, & resolve in, the lower case version. Its also upper case versions reported in the Google cache! So how come webmaster tools & Moz etc are reporting the upper case versions, surely if redirected it should be the lower case versions All Best Dan
Moz Pro | | Dan-Lawrence0 -
SEO and page redirects from a high ranking site quandary
We are launching a site on a new domain that is taking the place of a group (subset) of pages in an existing domain. BUT The pages on the existing domain have really good SEO rankings in a very competitive category and we want to leverage the traffic it gets today in the best way, so.... Which of the following would be the best practice in this case (in regards to SEO)? Modify the existing pages' content so that there are prominent calls to action that lead the users to the new domain. Create permanent redirects for the existing pages for their counterparts on the new domain. This is more direct for the user but we don't know how it will affect the current ranking. Something other than the above. Many thanks for you help Gary
Moz Pro | | gazza10 -
How long will it take for Page Rank (or Page Authority) to flow via a 301 redirect?
I've recently redeveloped a static site using WordPress and have created 301 redirects for the original urls to the new urls. I know I won't get all the value passed via the 301, but I'm hoping some will. Any idea how long this may take? It's been nearly a month since the changeover so wondering if it would be weeks, months or more?
Moz Pro | | annomd0 -
Redirect analysis tool
I'm looking for a tool like this: http://www.internetofficer.com/seo-tool/redirect-check/ that can check hundreds/thousands of URLs and give me a report as to which ones have been redirected. Does anyone know of something that can do this?
Moz Pro | | glass010 -
Some questions on Canonical tag AND 301 redirect
Hi everyone, I'm new here - always loved SEOMoz and glad to be part of the Pro community now. I have 2 questions regarding the Canonical URL tag. Some background info: We used to run an OsCommerce store, and recently migrated to Magento. In doing so, we right away created 301 redirects of the old category pages (OsCommerce) to the new category pages (Magento) via the Magento admin. Example: www.example.com/old-widget-category.html
Moz Pro | | yacpro13
301 redicrected to
www.example.com/new-widget-category.html In Magento admin, we have enabled the Canonical tag for all product and category pages. Here's how Magento sets up the Canonical tag: The URL of interest which we want to rank is:
www.example.com/new-widget-category.html However Magento sets up the canonical tag on this page to point to:
www.example.com/old-widget-category.html When using the SEOMoz On Page Report Card, it pick this up as an error because the Canonical tag is pointing to a different URL. However, if we dig a little deeper, we see that the URL being pointed to
www.example.com/old-widget-category.html
has a 301 redirect to
www.example.com/new-widget-category.html
which is the URL we wan to rank. So because we set up a 301 redirect of the old-page to the new-page, on the new-page the canonical tag points to the old-page. Question 1)
What are you opinions on this? Do you think this method of setting up the Canonical tag is acceptable? Second question... We use pagination for category pages, so if we have 50 products in one category, we would have 5 pages of 10 products. The URL's would be: www.example.com/new-widget-category.html (which is the SAME as ?p=1)
www.example.com/new-widget-category.html?p=1
www.example.com/new-widget-category.html?p=2
www.example.com/new-widget-category.html?p=3
www.example.com/new-widget-category.html?p=4
www.example.com/new-widget-category.html?p=5 Now ALL the URLs above have the canonical tag set as:
<link rel="canonical" href="http://www.example.com/new-widget-category" /> However, the content of each page (page 1, 2, 3, 4, 5) is different because different products are displayed. So far most what I read regarding the Canonical tag is that it is used for pages that have the same content but different URLs. I would hope that Google would combine the content of all 5 pages and view the result as a single URL www.example.com/new-widget-category Question 2) Is using the canonical tag appropriate in the case described above? Thanks !0 -
301 redirect
Hello, I received a crawl diagnostic report for the website http://www.advancedemt.com here's what it said: Issue: (301 redirect) Page Title URL:http://advancedemt.com/ Redirects to:http://http://www.advancedemt.com/ I called seohosting.com for help: They checked my .httaccess file and did not find anything that would cause this 301 redirect.. Cpanel was evaluated for a 301 redirect and nothing there either. MyPHP Admin was checked for anything that could possibly cause this issue. They had a tech search the entire database and no luck on any issue that may be causing the SEOmoz software to pick up this 301 redirect. We checked the Wordpress settings... No discrepancies. Wordpress permalinks... No problems..... We checked Google to see if they may have indexed the site for the error with no luck... I told the SEO Hosting staff that the canonical feature that has been built into Wordpress would prevent this redirect from allowing Google to index the site with this error. Is it possible that the crawl diagnostics is wrong??? Please help... Best regards, Jeff Bratcher (404) 520-2385
Moz Pro | | Jeff10 -
Experencing page authority issues after a 301 redirect
We just completed a build of a new site and used 301 redirects to retain our page authority. In the first week all the interior pages reported a page authority of 1 after 2 or so weeks the page authority began to look more accurate but they were still not as high as the original pages. The strange thing is that when you click on the link to a page the page authority populates correctly but when the page finally finished loading the PA goes back down. Has anyone ever experienced this and if so how did you fix it? Thanks!
Moz Pro | | Jo_vortx.com0 -
When does Open Site Explorer automatically follow a redirect?
Does anyone know what determines when Open Site Explorer will ask if you meant to type in the redirected URL or when it will automatically change the URL to the www version. example of a site I get asked the redirect question: http://www.opensiteexplorer.org/comparisons.html?site=checkbook.org Oh Hey! It looks like that URL redirects to www.checkbook.org/. Would you like to see data for <a class="clickable redirects">that URL instead</a>? example of a site that redirects automatically: http://www.opensiteexplorer.org/comparisons.html?site=healthleap.com
Moz Pro | | irvingw1