How do I change my URL displayed in a web browser?
Print Email
Email this article
Close
Email this article
CloseYou are here: Home > Website Support > .htaccess Config
To automatically re-write the URL: ‘http://your-domain.com’ to the URL: ‘http://www.your-domain.com’, customise the below rules and include them in a ‘.htaccess’ file:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.your-domain\.com$
RewriteRule ^(.*)$ http://www.your-domain.com/$1 [R=301,QSA,L]
Example:
Browsing to ‘http://your-domain.com’ now defaults to ‘http://www.your-domain.com’
Was this information helpful?
Yes NoThank you for your feedback
We are delighted to find that our article resolved your query.
Thank you for your feedback
We will resolve your query as soon as possible.
Please take a few moments to comment on your unresolved query. Simply tell us what your problem is. We guarantee that we'll get back to you within two hours (during office hours) in response to your query.
