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]

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