Welcome Guest, Not a member yet? Register   Sign In
.htaccess issues with CI3 inside Wordpress directory
#6

(02-26-2017, 02:27 PM)baxterheinen Wrote:
(02-26-2017, 11:38 AM)skunkbad Wrote: I usually just use a single .htaccess:

Code:
# URLs routed to CodeIgniter
RewriteRule ^foo/.*$ /ci_index.php [L]
RewriteRule ^bar.*$ /ci_index.php [L]

# Everything else goes to WordPress
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

Unfortunately this throws a 500 error on my CI pages.  


This wasn't meant to be complete, it's just showing that I'm routing to two different front controllers. Also, systems vary, and sometimes a perfectly working .htaccess file doesn't work on another machine.

Do be sure that in your apache config that you've got AllowOverride set to All. Just because mod_rewrite is enabled doesn't mean your .htaccess can do what you want it to.
Reply


Messages In This Thread
RE: .htaccess issues with CI3 inside Wordpress directory - by skunkbad - 02-26-2017, 06:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB