php - Redirect to a subdirectory using htaccess -
i using proxcore in website http://www.enkaizen.es/. trying install wordpress on subdirectory called "/soporte/" script came out of box .htaccess this:
<ifmodule mod_rewrite.c> rewriteengine on rewriterule ^$ app/webroot/ [l] rewriterule (.*) app/webroot/$1 [l] </ifmodule>
it not allow visit http://www.enkaizen.es/soporte/, stays on home page. added rewrite line top .htaccess file this:
<ifmodule mod_rewrite.c> rewriteengine on rewriterule ^soporte/?$ soporte/ [l] rewriterule ^$ app/webroot/ [l] rewriterule (.*) app/webroot/$1 [l] </ifmodule>
but not working. if take out second , third rewrite lines work, meaning can visit http://www.enkaizen.es/soporte/, script itself, proxcore script, not work @ all, , need have wordpress installation on "/soporte/" directory.
any ideas? please help!
for if facing issue, accomplished adding rewrite line:
rewriterule ^soporte/ - [l]
so final htaccess file is:
<ifmodule mod_rewrite.c> rewriterule ^soporte/ - [l] rewriterule ^$ app/webroot/ [l] rewriterule (.*) app/webroot/$1 [l] </ifmodule>
now working charm :d
Comments
Post a Comment