Martin Bugner
Hi,

I have one problem.

After installing Microweber to the directory with the alias domain is given the correct URL. 

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
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

arvind.ekta2026   2018-10-09 07:19:13
If you don't understand that how could we play the Yahtzee game then from here http://theyahtzee.com you can see that the all features that you have to used to play the game.
You have to log in or register to post a comment: