Loading...
Help

Redirection to a version of the site with/without www


By default, Blueboard hosting does not redirect to www or vice versa to the www version. It always keeps the specified address.

It is up to you whether you want to have the site on the version with www or without www at the beginning.

I want to have a site with www at the beginning

To set up the redirection, simply place or edit a file called .htaccess in the root of the site with this content:

# redirect to www version
RewriteCond %{HTTP_HOST} !^www\.(.*)
RewriteRule(.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
I want to have a site without www at the beginning

To set up a redirect, simply place or edit a file named .htaccess in the root of the site with this content:

# redirect to the version without www
RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule(.*) http://%{HTTP_HOST}/$1 [R=301,L]
Robot reading a book

Web hosting made simple on Blueboard hosting

Thanks to the intuitive controls and friendly support, you can set up web hosting with us in no time. Use it for your website, application, or other digital content.

More about Blueboard web hosting

Do not worry. We are happy to help you with anything.

Ask a question or call (+420) 775 08 65 75.

Tomáš

Tomáš

Jiří

Jiří

Veronika

Veronika

Michal

Michal

e

© 2001-2025 Blueboard.cz s. r. o.