在root和WordPress子目录下安装CodeIgniter不工作


Installing CodeIgniter on root and WordPress in sub-directory Not Working

我将wordpress安装在codeIngiter根目录中,如果我使用wordpress永久链接,那么我将获得codeIgniter的404页面未发现wordpress页面错误。我的. haccess文件如下所示。我在哪里设置错了?.htacess文件。类似的问题是安装CodeIgniter在根和WordPress的子目录

# Turn on URL rewriting
RewriteEngine On
RewriteBase /
# Protect application and system files from being viewed when the index.php is missing
RewriteCond $1 ^(application|system|private|logs)
# Rewrite to index.php/access_denied/URL
RewriteRule ^(.*)$ index.php/access_denied/$1 [PT,L]
# Rewrite to index.php/URL
RewriteCond %{REQUEST_URI} !^(.+)'.(js|css|gif|png|jpg|jpeg|bmp|swf|txt|xml|htc|pdf|xls|doc|ico)$
# Remove the index.php file
# Ref. http://www.codeigniter.com/userguide3/general/urls.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
# Allow these directories and files to be displayed directly:
RewriteCond $1 !^(index'.php|robots'.txt|blog|opensearch'.xml|favicon'.ico)
RewriteRule ^(.*)$ index.php/$1 [L]
something like.
DirectoryIndex index.php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index'.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

查看我如何修改的重写基础,现在您可以尝试访问codeigniter和wordpress url