apache - .htaccess - exclude one domain - can i make it better? -


i have 2 domains,and .htaccess main domain affect second domain. try exclude second domain,hours later think im done.

please check line 5 , 6

question: code valide ?is ok ? can make better ?

### rewriteengine on ### <ifmodule mod_rewrite.c> rewriteengine on ### http -> https ### rewritecond %{http_host} ^(www\.)?second-domain\.com$ rewriterule ^.*$ '-' [l] rewritecond %{https} off rewritecond %{request_uri} !^/[0-9]+\..+\.cpaneldcv$ rewritecond %{request_uri} !^/[a-f0-9]{32}\.txt(?:\ comodo\ dcv)?$ rewritecond %{request_uri} !^/\.well-known/acme-challenge/[0-9a-za-z_-]+$ rewriterule (.*) https://first-domain.com%{request_uri} [r=301,l] ### rewrite application ### rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond %{request_uri} !^/[0-9]+\..+\.cpaneldcv$ rewritecond %{request_uri} !^/[a-f0-9]{32}\.txt(?:\ comodo\ dcv)?$ rewritecond %{request_uri} !^/\.well-known/acme-challenge/[0-9a-za-z_-]+$ rewriterule ^(.*)$ index.php?$1 [l,qsa] ### close rewriteengine ### </ifmodule> <files 403.shtml> order allow,deny allow </files> 

my internet slow , cant check pages atm

thanks! <3


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -