My subdomain for e.g http://web.example.com/ and main domain http://example.com/
My site hosted on gandi.net server, When i have created sub domain it's automatically created subdomain folder web.example.com
Folder structure is:
Main domain: /lamp0/web/vhosts/example.com/htdocs/
and source code of wp
Sub domain: /lamp0/web/vhosts/web.example.com/htdocs/
and source code of ci
My main domain site in WordPress
and subdomain site in codeigniter
framework.
When i run the sub domain it's call the WordPress index.php file
Wordpress .htaccess is:
# 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
And codeigniter .htaccess is:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Anyone can suggest me where is the issue ? why calling the main domain file when i try to subdomain.