Mobile app version of vmapp.org
Login or Join

Login to follow query

More posts by @XinRu657

1 Comments

Sorted by latest first Latest Oldest Best

 

@Candy875

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme