08-04-2009, 12:31 AM
[eluser]Zeeshan Rasool[/eluser]
hi all CI lovers..
i've a problem. i need to put cms that is in CI and my site that is developed in plain php
so im using same folder in which i put my system folder and my site's pages etc. So how can i use same .htaccess so that when i give http://mysite.com/cms it loads cms and if i use http://mysite.com then it loads my site.
RewriteEngine on
in cms case it loads cms but site cant' be accessed
thnx
hi all CI lovers..
i've a problem. i need to put cms that is in CI and my site that is developed in plain php
so im using same folder in which i put my system folder and my site's pages etc. So how can i use same .htaccess so that when i give http://mysite.com/cms it loads cms and if i use http://mysite.com then it loads my site.
RewriteEngine on
Code:
Options +FollowSymLinks
Options -Indexes
DirectoryIndex admin.php
RewriteCond $1 !^(admin\.php|tmp|images|css|js|robots|css|tiny_mce|images|cms_js\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ admin.php?$1 [L,QSA]
RewriteRule ^index.html$ index.php
RewriteRule ^my-studio.html$ my-studio.php?p=my-studio
thnx