Fast2Host Logo


How to redirect from to using .htaccess

How to redirect from to

Create a .htaccess file in your wwwroot folder (Windows hosting) or your public_html folder (Linux hosting), containing the following, replacing with your domain name:


RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com$  [NC]
RewriteRule ^(.*)$$1 [L,R=301]

Maintain peace of mind with UK based support

Email any time or call 01480 26 00 00 014 80 26 00 00