php - Error 500 MVC with subdomain -
i have php mvc frame work. created subdomain gives error 500.
my root .htaccess
file this:
<ifmodule mod_rewrite.c> rewriteengine on rewriterule ^$ all_users/ [l] rewriterule (.*) all_users/$1 [l]
it redirects "all_users" folder.
the "all_users" root .htaccess
this:
<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d # rewrite other urls index.php/url rewriterule ^(.*)$ index.php?url=$1 [pt,l] </ifmodule> <ifmodule !mod_rewrite.c> errordocument 404 index.php </ifmodule>
the subdomain folder in root of site.
how should change .htaccess
file(s) subdomain redirection. thanks.
i found answer.
this .htaccess file in root of site:
<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{http_host} ^subdomain.domain.com$ [nc] rewriterule (.*) / [l] rewriterule ^$ all_users/ [l] rewriterule (.*) all_users/$1 [l] </ifmodule>
Comments
Post a Comment