mod rewrite - I have other system in sub-folder, how to write .htaccess? -
if have php scheme a(the .htaccess follow) , need set other scheme b sub-folder under a's htp://www.a.com/b/ how alter code create work? (just because right when type htp://www.a.com/b/ can see login page, when login , redirect htp://www.a.com/index.php )
thanks!!rewriteengine on rewritebase "/" rewritecond %{query_string} rewrite rewriterule .* - [l] rewriterule index\.php(.*) $1 [r=302,l] rewriterule ^$ "/index.php?rewrite" [qsa,l] rewritecond %{request_filename} -f [or] rewritecond %{request_filename} -d [or] rewritecond %{request_uri} \.(js|css|jpe?g|jpe|gif|png|ico)$ [nc] rewriterule .* - [l] multiple rewrites rewriterule /?(.*) "/index.php?rewrite=$1" [qsa,l]
just below rewritebase
insert rewriterule
skip directory b
:
rewriterule ^b(/.*)?$ - [l,nc]
.htaccess mod-rewrite
No comments:
Post a Comment