Jump to content

< SOLVED > URL Canonicalization


Vilas

Recommended Posts

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 by Vilas (see edit history)
Link to comment
Share on other sites

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...