Installing CodeIgniter on root and WordPress in sub-directory

前端 未结 3 1285
太阳男子
太阳男子 2020-12-09 06:05

I want to create a website where the main pages will be served from CodeIgniter. I will use Wordpress in the /blog/ sub-directory to host the blog. Thats it! I want nothing

3条回答
  •  攒了一身酷
    2020-12-09 06:46

    I suspect you could get this to work using an .htaccess file in the root directory of your site. If blog is the name of the subdirectory where WordPress is installed, and you want example.com/blog to be handled by WordPress, try this to see if it helps:

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

提交回复
热议问题