php - WordPress Htaccess breaking rest of site -


to start, hosting website on aws. have normal wordpress site in root, custom application in sub-folder. htaccess in sub-folder is:

//htaccess rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule .* index.php/$0 [pt,l] 

and htaccess in root:

<ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> 

i have feeling wordpress screwing application in /sub/, cause working before moved wordpress root. if need additional info, let me know. how wordpress ignore directory?

you need add default htaccess root directory of wordpress site. read out documentation here basic , subdomains , multisite etc.

# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> 

place htaccess in sub folder.

<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -