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
-
Magento- Temporary Redirects
Hey guys! My organization just launched an eCommerce site and we are receiving a lot of temporary redirect issues. How do you solve this issue (36k of them) within Magento Enterprise? 1. All settings have been changed to 301 redirects but I am still receiving the same errors during my crawl report. 2. Website URL = www.CanyonOS.com Any support or advice is greatly appreciated! Oh and if you need any toner, you know where to go :)! Sincerely,
Moz Pro | | CanyonOS0 -
Pages with Temporary Redirect (CTA)
I had MOZ crawl my site and I had 5 CTA pages with a temporary redirect. How do I correct the issue? Thank You! -Nick
Moz Pro | | X2Metrology10 -
The right GA account is not populating as an option. Can I redirect to a GA account not listed?
When setting up a campaign, Moz provides a number of Google Analytic options, however not the one that pertains to the specific URL for the campaign. Is there a setting I need to change to allow for the right GA account to populate? Or, can I enter this manually?
Moz Pro | | mmetzger0 -
HTC access 301 redirect rules regarding pagination and striped category base (wp)
I am an admin of a wordpress.org blog and I used to use "Yoast All in one SEO" plugin. While I was using this plugin it stripped the category base from my blog post URL's. With yoast all in one seo: Site.com/topic/subtpoic/page/#
Moz Pro | | notgwenevere
Without yoast all in one seo: Site.com/category/topic/subtopic/page/# Now, that I have switched to another plugin, I am trying to manage the page crawl errors which are tremendous somewhere around 1800, mostly due to pagination. Rather than redirecting each URL individually I would like to develop HTC access 301 redirects rules. However all instructions on how to create these HTC access 301 redirect rules are regarding the suffix rather than the category base. So my question is, can HTC access 301 redirects rules work to fix this problem? Including pagination? And if so, what would this particular HTC access 301 redirect look like? Especially regarding pagination? And do I really have to write a 301 redirect for each pagination page?0 -
How many of my linked pages should I redirect (301's)
I'm moving my store to a new site and will have a much friendlier but completely different URL structure. I used Open Site Explorer to find inbound links to 513 pages and have done about half so far. The remaining pages have one link each at a page authority of 27 or less - but there are still 250+ of them. I have to manually view each old page, search for the product on the new site, and enter the redirect as there is no way to translate old URL's to new ones. How important is it for rankings to redirect the remaining 250 or so pages?
Moz Pro | | agirlandamac0 -
301 redirect question from a newb
So, I've been blogging for almost 3 years now. I've always used wordpress, but recently changed from a ProPhoto theme to a Woo Theme (Editorial...don't know if that matters). I've signed up for the SEOmoz website and HOLY CROW I have problems with my website out the wazoo. I am tackling issues one at a time and one of my issues seems to be 301 redirects. If you'd like to see a screen shot of the crawl diagnostics, check it out the attachment. If you'd like screen shots of anything else, just let me know. I'm not sure I'm reading the chart right, but it seems to say that all of my redirecting problems are because my links are redirecting from an http://www..... to a http://http://www... I've been in my wordpress blog post back end and can't seem to figure out how they A. Got like this. and B how to fix it. If I'm reading the chart wrong...definitely let me know. Thank you guys so much in advance! Screen%20Shot%202012-01-01%20at%202.28.19%20PM.png
Moz Pro | | TerraDawn0 -
Open Site Explorer Issue - Pullng up No-follow links when settings ask for Follow + 301 Redirect..
Anybody else having this issue? Here lately when I am doing competitive research on open site explorer I set it to only pull up followed + 301 redirects and it will still pull up no-follow competitors links. Can anybody help me out here?
Moz Pro | | axzm0 -
Impact of 301-redirected domains on OSE Metrics
When looking at the OSE metrics (DA, PA, Number Linking RDs etc.) is it purely based on OSEs evaluation of the specific domain or will it take into account links that have been 301-redirected to the domain?
Moz Pro | | bjalc20110