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
-
Do you get link equity from a redirect service?
When using a redirect service, do you get link equity from the redirect service or only from the linking website? Using opensite explorer in Moz, always shows me directory and redirect services as most important contribution for the domain authority. But I'm questioning if this is true. P.S. I'm not asking if link equity is passed from the linking website. That question has been answered many many many times. (hint: the answer is yes). H58xHAl.png pGH7e48.png
Moz Pro | | jasny0 -
Pages with Temporary Redirects on pages that don't exist!
Hi There Another obvious question to some I hope. I ran my first report using the Moz crawler and I have a bunch of pages with temporary redirects as a medium level issue showing up. Trouble is the pages don't exist so they are being redirected to my custom 404 page. So for example I have a URL in the report being called up from lord only knows where!: www.domain.com/pdf/home.aspx This doesn't exist, I have only 1 home.aspx page and it's in the root directory! but it is giving a temp redirect to my 404 page as I would expect but that then leads to a MOZ error as outlined. So basically you could randomize any url up and it would give this error so I am trying to work out how I deal with it before Google starts to notice or before a competitor starts to throw all kinds at my site generating these errors. Any steering on this would be much appreciated!
Moz Pro | | Raptor-crew0 -
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 -
301 or canonical for multiple homepage versions?
I used 301 redirects to point several versions of the homepage to www.site.com. i was just rereading moz's beginners guide to seo, and it uses that scenario as an example for rel canonical, not 301 redirects. Which is better? My understanding is that 301s remove all doubt of getting links to the wrong version and diluting link equity.
Moz Pro | | kimmiedawn0 -
Question on redirect and internal link count
After crawl I saw that dup content came from domain.com/index.php and domain.com. I was going to redirect one of them but im curious which way to go. The /index.php has domain auth of 19, the other 17, so not big difference. Domain.com has 2 external linking domains and index.php has 1. The big difference is in the internal link counts where index.php has 76 and the other only 4. So should I direct index.php to / or the other way around?
Moz Pro | | satoridesign0 -
Temporary Redirects
Hi, I've noticed that most of my temporary redirects are the cause of this parameter. http://www.maddenstudents.com/forum/search.php**?s=2f0b01c7d530cf117a2bbb6811f0b527**&do=finduser&userid=1&contenttype=vBForum_Post&showposts=1 http://www.maddenstudents.com/forum/search.php**?s=2f0b01c7d530cf117a2bbb6811f0b527**&do=finduser&userid=1&searchthreadid=15&contenttype=vBForum_Post&showposts=1 I also noticed that almost all of my duplicate content and duplicate titles are the cause of this parameter. I tried going into google webmasters, but they say i don't need to change anything. How do I get rid of this parameter because it seems to be causing a lot of errors and warning for me.
Moz Pro | | taychatha0 -
Is Open Site Explorer ignoring 301 redirects now?
I just recently saw a huge decline in the page rank of a specific page on my site. When I investigated a bit further I noticed that the drop in page rank looks like it is due to the fact that most of the links to the page come through 301 re-directs from an old page. I know you just made a change to Open Site Explorer. Did you change the way that you are treating 301 re-directs? Here is the new page: http://www.justjen.com/shop/big-sister-tshirts.htm Here is the old page: http://www.justjen.com/shop/bigsister-tshirts.htm Up until the last couple of days, the new page was showing the links from the old page in your cache, but as of today, the new page is only showing the links that go to it, not the links to the old page that is re-directed to it. If there was a change recently, was this intentional (trying to replicate the search engines better) or is it an oversight or database anomaly?
Moz Pro | | gametv0 -
Site is showing forwarded /301 to another website
My site http://riyas.in is showing a 301 redirect or a forward to http://flicker.com/muhammedriyas . I had done a 301 redirect long before from my site to this domain, but i removed that after 2-3 days. Please help me to solve this problem. I attached a screen shot seomoz1.jpg
Moz Pro | | riyas_0