Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
253 views
in Q2A Core by
I want to get any urls from subdomains to root (mvc boot)
 
I use from this code for root folders:
 
 
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^(.*)$ boot.php?url=$1 [L]
    #this code good working ... 
 
But for subdomain, how do I get files that do not exist?
    
    #The following code is worked,but not get 404 folders Or files(!-d,!-f,!-l)
    RewriteCond %{HTTP_HOST}  ^mySubDomain.domain.com [OR]
    RewriteRule ^(.*)$ /../boot.php?url=$1 [L] 
 
---
 
How can I add:
 
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-l
 
to this code?
Q2A version: Get any address from subdomains with .htaccess
by
Hello erfan, I am not understanding how does this question relate to Q2A?

Please log in or register to answer this question.

...