Organizational Research By

Surprising Reserch Topic

how to set codeigniter to ignore wordpress folder

how to set codeigniter to ignore wordpress folder  using -'wordpress,codeigniter,routes'

I built a website with CodeIgniter last year, and client wanted Wordpress Blog last week. I built the blog and uploaded to

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

  An Error Was Encountered
  Unable to
  load your default controller. Please
  make sure the controller specified in
  your Routes.php file is valid.

How can I set Codeigniter to ignore Wordpress folder?

Appreciate helps!!!

asked Sep 15, 2015 by KryFaunce
0 votes

Related Hot Questions

1 Answer

0 votes

You'll want to do this with an .htaccess file (assuming your web server supports it.) For example, in the DocumentRoot of my Codeigniter site I have an .htaccess file which contains:

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

This allows me to still access static files and the CI user guide. In your case the RewriteCond would be something like:

RewriteCond $1 !^(index\.php|blog)
answered Sep 15, 2015 by AQNCat