我的子域名为例如http://web.example.com/和主域http://example.com/我的站点托管在gandi.net服务器上,当我创建子域名时,它会自动创建子域名文件夹 web.example.com

文件夹结构是:

主域名: /lamp0/web/vhosts/example.com/htdocs/ 和wp的源代码

子域名: /lamp0/web/vhosts/web.example.com/htdocs/ 和ci的源代码

我在 WordPress 的主域名网站和 codeigniter 框架中的子域名网站 . 当我运行子域时,它调用WordPress index.php文件

Wordpress .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

codeigniter .htaccess是:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L] 
</IfModule>

任何人都可以建议我在哪里问题?为什么在我尝试子域名时调用主域文件 .