ottdev

Well-Known Member
Oct 1, 2013
130
4
68
cPanel Access Level
Root Administrator
When user creates an add-on domain, and redirects it in cPanel, you write the following to .htaccess:
RewriteCond %{HTTP_HOST} ^mydomain\.tld$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.tld$
RewriteRule ^/?$ "https\:\/\/www\.myotherdomain\.tld\/company\/about\-company\-information\/" [R=301,L]

I know it works anyway in this case, but WHY are you escaping the right hand side in the rule ?