I am trying to eliminate domain.com and force the user to use only
www.domain.com
i read some articles on the internet about how to achieve this but they didn't want to work for me
i tried this for my virtual host file
Code:
<VirtualHost *:80>
ServerName www.domain.co.uk:80
# All other stuffs for domain below......
</VirtualHost>
<VirtualHost *:80>
ServerName domain.co.uk:80
RedirectPermanent / "http://www.domain.co.uk"
</VirtualHost>
which works for domain.co.uk. typing in domain.co.uk in to the address bar on my browser successfully redirects me to
www.domain.co.uk. The problem is when i put something like domain.co.uk/About instead of directing to
www.domain.co.uk/About it directs to
www.domain.co.ukabout. Is there anyway to get any page to redirect to
www.domain.co.uk/About?