Vilas Posted June 27, 2013 Share Posted June 27, 2013 (edited) Hello, I found one error when I have checked my site using one of the SEO tool.. It shown below error. URL Canonicalization http://xyz.com and http://www.xyz.com should resolve to the same URL, but currently do not. Can anyone know how to solve this issue? Thanks in advance. Edited June 29, 2013 by Vilas (see edit history) Link to comment Share on other sites More sharing options...
FME_Modules Posted June 28, 2013 Share Posted June 28, 2013 You need redirect through your Htaccess file http://xyz.com to http://www.xyz.com using 301 permanent redirection. Link to comment Share on other sites More sharing options...
Vilas Posted June 28, 2013 Author Share Posted June 28, 2013 alastairbrian Thanks for details. But how to do that means what script I have to use for it? Thanks Link to comment Share on other sites More sharing options...
FME_Modules Posted June 28, 2013 Share Posted June 28, 2013 (edited) RewriteEngine On RewriteCond %{HTTP_HOST} ^example.com RewriteRule (.*) http://www.example.com/$1 [R=301,L] Add above in your HTaccess file Edited June 28, 2013 by alastairbrian (see edit history) Link to comment Share on other sites More sharing options...
Vilas Posted June 28, 2013 Author Share Posted June 28, 2013 Thanks for details. I have to enter my domain name in that field right? Link to comment Share on other sites More sharing options...
FME_Modules Posted June 28, 2013 Share Posted June 28, 2013 (edited) Exactly. Enter your domain name by replacing "example" Edited June 28, 2013 by alastairbrian (see edit history) Link to comment Share on other sites More sharing options...
Vilas Posted June 28, 2013 Author Share Posted June 28, 2013 (edited) Hi Friend, After adding above script in .htaccess when I check url canonical status using below tool then it shows that tool blocked by my that script. If I remove it then that tool works perfectly. Tool URL http://www.seositecheckup.com Site url for which I am getting error that is Thanks Edited June 29, 2013 by Vilas (see edit history) Link to comment Share on other sites More sharing options...
FME_Modules Posted June 29, 2013 Share Posted June 29, 2013 The page isn't redirecting properly Please send me code that you are using currently. Link to comment Share on other sites More sharing options...
Vilas Posted June 29, 2013 Author Share Posted June 29, 2013 (edited) I am using below code in my .htacess file. Rest scripts are generated by prestashop. Thanks Edited June 29, 2013 by Vilas (see edit history) Link to comment Share on other sites More sharing options...
Vilas Posted June 29, 2013 Author Share Posted June 29, 2013 Hmmm... happy to inform issue resolved. I have changed domain name to www.xyz.com under preferences tab & then checked with the tool. Its showing below massage " http://xyz.com and http://www.xyz.com resolve to the same URL. Thanks for your kind support. Link to comment Share on other sites More sharing options...
FME_Modules Posted June 29, 2013 Share Posted June 29, 2013 Means the above code has resopved the issue. Please edit your thread and write [solved] Link to comment Share on other sites More sharing options...
Optimus_Sam Posted July 2, 2013 Share Posted July 2, 2013 Hi guys, Great thread going on here. I have the same problem but i'm not sure what to do with it. I have http://www.verwarmingsshop.be and http://verwarmingsshop.be that should resolve into one. This is the .htaccess script: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^www.verwarmingsshop.be$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] Now, what is it exactly that I have to change? I'm unsure... Thanks a lot in advance. Sam Link to comment Share on other sites More sharing options...
FME_Modules Posted July 2, 2013 Share Posted July 2, 2013 (edited) Hello sam! Looks like you website URL is clean, Your website without i.e http://verwarmingsshop.be redirects to www i.e http://www.verwarmingsshop.be Edited July 2, 2013 by alastairbrian (see edit history) 1 Link to comment Share on other sites More sharing options...
Optimus_Sam Posted July 2, 2013 Share Posted July 2, 2013 Hello sam! Looks like you website URL is clean, Your website without i.e http://verwarmingsshop.be redirects to www i.e http://verwarmingsshop.be Oh ok. I just got a negative report from a seo tool i used. That's why i thought there was something wrong. But if everything is ok, i don't need to worry no more . Thanks for the follow up Alastairbrian! Link to comment Share on other sites More sharing options...
FME_Modules Posted July 2, 2013 Share Posted July 2, 2013 (edited) I use this tool to test. (http://www.woorank.com/en/www/) Place your URL here and you will see a comprehensive review of your website. Under SEO basics you will see redirection issue if there is any. Edited July 2, 2013 by alastairbrian (see edit history) 1 Link to comment Share on other sites More sharing options...
Optimus_Sam Posted July 2, 2013 Share Posted July 2, 2013 Thanks AlastairBrian for the link. I think many will benefit from it. 1 Link to comment Share on other sites More sharing options...
dorje Posted July 5, 2013 Share Posted July 5, 2013 This tip is good to redirect the non www version to www version and it's really big thing as seo by perspective but the main problem in prestashop is that it automatically erases the code again and again in days or weeks interval. so you have to check weekly or daily to ensure that your site is redirecting properly to the www version and if not then you to put again the same code again and again Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now