Originally Posted by
ernestmcd
1. Settings in cpanel for the imex.zedseries.com subdomain. Example:
Subdomains Root Domain | Document Root | Redirection
imex.zedseries.com | ?? | ??
I do not use cpanel, my configuration is the following:
VirtualHost: zedseries.com
DocumentRoot: /home/domains/zedseries.com
VirtualHost: imex.zedseries.com
DocumentRoot: /home/domains/zedseries.com
please note that the two Document Root are the same, there is no need for redirection because Contao load the correct page by itself
Originally Posted by
ernestmcd
2. In the /richmond subdomain folder, you indicate that I should use the .htaccess.default file. If I just add in the default .htaccess file AS IS, the redirect doesn't work. Are you adding the rewrite rules for the imex subdomain to this file, and if so where and what do they read?
I have no equivalent of "richmond subdomain folder" the two domains (the correct name is VirtualHost) must point to the same directory
I edited my .htaccess so if an user load http://imex.zedseries.com, it will be redirected to
http://imex.zedseries.com/import-export ... o-cms.html
I order to achieve this I just added the following lines in my .htaccess file:
Code:
# change this to ^richmond\.permatreat\.com$
RewriteCond %{HTTP_HOST} ^imex\.zedseries\.com$
# change this to "\/richmond-pest-control.html" [R=301,L]
RewriteRule ^/?$ "\/import-export-tool-for-contao-cms.html" [R=301,L]
# the lines below are the last entries in the Contao .htaccess file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*\.html$ index.php [L]
Bookmarks