How to install CodeIgniter to ignore a Wordpress folder?

I built a site with CodeIgniter last year www.example.com, and a Wordpress client blog last week. I created a blog and uploaded to www.example.com/blog

Now, when I click on any wordpress link, it gives an error, as shown below: /

http://www.example.com/blog/category/one-last-category/

Error detected

Unable to load your default controller. please make sure the controller specified in your Routes.php file is valid.

How can I install Codeigniter to ignore a Wordpress folder?

It helps to appreciate !!!

+3
source share
1 answer

.htaccess( , - .) , DocumentRoot Codeigniter .htaccess, :

RewriteEngine on
RewriteCond $1 !^(index\.php|static|user_guide|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

CI. RewriteCond - :

RewriteCond $1 !^(index\.php|blog)
+11

Source: https://habr.com/ru/post/1782859/


All Articles