: Diff. between with www & without www Is there any diff. if I submit my site to google with www or without www? Which is best way to submit from above?
Is there any diff. if I submit my site to google with www or without www?
Which is best way to submit from above?
More posts by @XinRu657
1 Comments
Sorted by latest first Latest Oldest Best
There isn't. However, it's good practice to choose one or the other and stick to it - allowing for both may cause issues with ranking.
You can ensure that your website sticks to one or the other by redirecting all requests to the one you have chosen. Here is an example, which ensures all requests to google.co.uk get redirected to google.co.uk - it also ensures that the index page is consistently /:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.google.co.uk
RewriteRule ^(.*)$ www.google.co.uk/ [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /index.(html|php|htm) HTTP/
RewriteRule . www.google.co.uk/ [R=301,L]
You can generate your own using this tool and entering your canonical domain:
www.thefreshuk.com/tools/htaccess-gen.html
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.