How to set a subdomain alias to another subdomain

If you want the subdomain jablko.domena.cz to retrieve content from the subdomain hruska.domena.cz folder, you can set this for Blueboard.cz using the .htaccess file, which will be placed next to the subdomain hruska folder. WARNING, however, the jablko folder must not be created.

It will have the following content:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^jablko.domena.cz
RewriteCond %{REQUEST_URI} !hruska/
RewriteRule ^(.*)$ hruska/$1 [L]

Of course, don't forget to rename specific parts according to the name of your subdomains.

Please contact us to modify your hosting to make this functionality work on your domain

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