Nick20000 Posted October 17, 2014 Share Posted October 17, 2014 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 More sharing options...
PascalVG Posted October 17, 2014 Share Posted October 17, 2014 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. Link to comment Share on other sites More sharing options...
Nick20000 Posted October 17, 2014 Author Share Posted October 17, 2014 (edited) 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 October 17, 2014 by Nick20000 (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted October 18, 2014 Share Posted October 18, 2014 pascal. Link to comment Share on other sites More sharing options...
Nick20000 Posted October 18, 2014 Author Share Posted October 18, 2014 hi pascal. i can not see your reply? Link to comment Share on other sites More sharing options...
PascalVG Posted October 18, 2014 Share Posted October 18, 2014 Hmm, neither can I... Getting crazy of forum software! Anyway, said something like Prestashop adds http part to all url's, so that will be the same in the end. 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