Martin Bugner
Hi,
I have one problem.
Example:
Alias domain is located in the directory /www/domains/alias-domain.tld
URL adress is then http://alias-domain.tld/domains/alias-domain.cz/
.htaccess on /www
I have one problem.
After installing Microweber to the directory with the alias domain is given the correct URL.
Alias domain is located in the directory /www/domains/alias-domain.tld
URL adress is then http://alias-domain.tld/domains/alias-domain.cz/
.htaccess on /www
RewriteEngine On
# all domains (aliases)
RewriteCond %{REQUEST_URI} !^domains/
RewriteCond %{REQUEST_URI} !^/domains/
RewriteCond %{HTTP_HOST} ^(www\.)?(.*)$
RewriteCond %{DOCUMENT_ROOT}/domains/%2 -d
RewriteRule (.*) domains/%2/$1 [DPI]
# subdomains (with or without www)
RewriteCond %{REQUEST_URI} !^subdom/
RewriteCond %{REQUEST_URI} !^/subdom/
RewriteCond %{HTTP_HOST} ^(www\.)?(.*)\.([^\.]*)\.([^\.]*)$
RewriteCond %{DOCUMENT_ROOT}/subdom/%2 -d
RewriteRule (.*) subdom/%2/$1 [DPI]
# aliases - redirect without /
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^domains/[^/]+/(.+[^/])$ /$1/ [R]
# subdomains - redirect without /
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^subdom/[^/]+/(.+[^/])$ /$1/ [R]
The .htaccess file in the directory /domains is standard after installation.
I need to have the correct URL, ie (www).alias-domain.tld Martin
Thx
Comments for Post-install problem with domain alias
Log in