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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -