在Word中preSS子目录不同的项目 [英] Different project on Wordpress sub directory
问题描述
我想开发一个项目在我的网站根为安装Word preSS一个子目录。不知怎的,它不断显示404错误页面。让我来解释 -
I am trying to develope a project on a sub directory of my web root where WordPress is installed. Somehow it keeps showing 404 error page. Let me explain -
http://www.mysite.com - 安装[网站根目录/字preSS网站]
http://www.mysite.com - [Web root directory/WordPress site installed]
这个目录下的.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>
# END WordPress
http://www.mysite.com/crm/ - [新目录CRM在那里我存储我的codeIgniter项目/安全网页]
http://www.mysite.com/crm/ - [New directory 'crm' where I stored my CodeIgniter project/Secured pages]
这个CRM目录的.htaccess:(这是codeigniter项目)的
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
每当我尝试访问的第二个链接,它显示404错误。请帮我解决这个问题。
Whenever I try to access the second link, it shows 404 error. Please help me to solve this issue.
**如果我使用普通的HTML文件,它的工作原理,但对安全的网页,这是行不通的。
** If I use normal html file, it works, but for secured page, it does not work.
推荐答案
您需要更改 /crm/.htaccess
为:
RewriteEngine on
RewriteBase /crm/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
和的DocumentRoot /的.htaccess
,如下:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^crm(/|$) - [NC,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
这篇关于在Word中preSS子目录不同的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!