Forum Moderators: phranque
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# stuff to let through (ignore)
RewriteCond %{REQUEST_URI} "/yyyy-yyyyyyyyyyyy.com/"
RewriteRule (.*) $1 [L]
#
<Files formmail.ini>
Order allow,deny
Deny from all
</Files>
<Files /revslider-standalone/install/index.php>
Order allow,deny
Allow from all
</Files>
[edited by: not2easy at 3:12 pm (utc) on May 29, 2018]
[edit reason] readability [/edit]
AddHandler application/x-httpd-php56 .php .htm .html
<Files formmail.ini>
Order allow,deny
Deny from all
</Files>
<Files /revslider-standalone/install/index.php>
Order allow,deny
Allow from all
</Files>
You should not generally be able to visit one domain through anotherIn a typical addon configuration, the physical directory structure is
RewriteCond %{HTTP_HOST} (addon1|addon2)
RewriteRule . - [L]so requests for your addon domains are bumped straight to their individual htaccess files with their own RewriteRules--including canonicalization redirects--and don't mix with the “primary” domain.
So I would replace addon1|addon2 with the real addon domain name?Exactly. Note that you don't need any anchors ^ $ at this point; just give enough of the name to distinguish it from the primary domain. I guess technically you don't even need the parentheses, but leaving them out when there are pipes involved make me anxious :( If you're only dealing with a single addon, then you can definitely leave out the parentheses.