rename index.php and working with CI CMS? |
[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 Code: Options +FollowSymLinks thnx
[eluser]Phil Sturgeon[/eluser]
Just put cms into the first RewriteCond Quote:RewriteCond $1 !^(admin\.php|cms|tiny_mce|cms_js\.txt) Means it will not try and match anything starting with "cms" to CodeIgniter. Btw, I took out lots of the first line as it wasn't required. They match against real files so the 2nd and 3rd conditions pick that up. No point in having it check 11 things EVERY request that is made. |
Welcome Guest, Not a member yet? Register Sign In |