REGEX-Escape for: RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

Your Input:
Result, the escaped string:
RewriteRule \(\.\*\) https\:\/\/%\{HTTP_HOST\}%\{REQUEST_URI\} \[R,L\]

What must the escaping look like for:
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

The excaped text for use in a regex is:
RewriteRule \(\.\*\) https\:\/\/%\{HTTP_HOST\}%\{REQUEST_URI\} \[R,L\]


Ads