Jump to content

Just a confirmation please...


Recommended Posts

Hi. Can anyone tell me if this is correct. I have set up the URL canonicalization and want to know this...

 

My domain name in the back office is set as this www.shopmost.co.uk but in the .htacess file I see my website is listed as this.

 

RewriteEngine on
RewriteCond %{HTTP_HOST} ^shopmost.co.uk [NC]
RewriteRule ^(.*)$ http://www.shopmost.co.uk/$1 [L,R=301,NC]
 
Now if my website is set as www.shopmost.co.uk in the back office shouldn't that be>>> RewriteCond %{HTTP_HOST} ^www.shopmost.co.uk [NC] instead here with the www and not shopmost.co.uk?
 
thank you.
Link to comment
Share on other sites

  On 10/17/2014 at 7:37 PM, PascalVG said:

No, condition gives the IF part (if shopmost.co.uk)

rule gives THEN part (then rewrite as www.shopmost.co.uk)

 

see also for example here:

http://www.widexl.com/tutorials/mod_rewrite.html

and

http://www.wegtam.net/article/use-htaccess-rewritecond-and-rewriterule-redirect-your-urls-your-apache-webserver

 

Hope this helps,

pascal.

so in my back office my website address is www.shopmost.co.uk as i build all my backlinks as http://www.shopmost.co.uk - the http:// part does not matter? As in the back office I do not have http://www.shopmost.co.uk as it is set as www.shopmost.co.uk

 

thank you.

Edited by Nick20000 (see edit history)
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...