The main site launches WordPress with .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
I'm going to create a CodeIgniter application in a subdirectory. site.com/online/
Just adding the CI.hta file to a subfolder will not work. CI.htaccess:
RewriteEngine on
RewriteCond $1 !^(index\.php|robots\.txt|img|styles|js)
RewriteRule ^(.*)$ /index.php?/$1 [L]
Is it possible to merge two .htaccess files or do something with .htaccess in a subfolder of CI? Thank.
UPD. Thanks for the answers, I tried all the options and eventually moved the project to a subdomain.
source
share