安装在同一服务器上时出现Wordpress / Codeigniter URL问题

I have installed my wordpress installation on my server root e.g mydomain.com & codeigniter installed in subdirectory named ci e.g mydomain.com/ci. When I try to access my wordpress site it works fine, but when I try to access any of my ci controllers e.g mydomain.com/ci/signup it throw 404 Page Not Found CI error. but it worked fine for my default home controller. I have searched for solution & tried many of them but any one of them is not worked in my case.

here is the rewrite rules in .htaccess for my both installtion.

mydomain.com/.htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

mydomain.com/ci/.htaccess

 RewriteEngine on
 RewriteBase /ci
 RewriteCond $1 !^(index\.php|user_guide|robots\.txt)
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d 
 RewriteRule ^(.*)$ index.php/$1 [L,QSA]
查看全部
dongzi1959
dongzi1959
2015/09/06 06:49
  • wordpress
  • codeigniter
  • php
  • url
  • 点赞
  • 收藏
  • 回答
    私信

1个回复