CodeIgniter multiple application with subdomains and correct htaccess |
first thing i would do is move the 'system' folder outside your 'public_html' folder and change your pathing in the various index.php files to reflect the new path. This makes the 'system' folder inaccessible via the web. But still accessible to the application folders.
as for the htaccess file in the subdomain folders i am not all the well versed in the htaccess commands but a quick google search turned up this : RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain\.com$ [NC] RewriteRule ^(.*)$ http://domain\.com/subdomain/index.php/$1 [L] just replace : 'subdomain' in the last line with the appropriate folder name. hopefully this helps
"I reject your reality and substitute my own" - Adam Savage, M5 Inc.
|
Messages In This Thread |
CodeIgniter multiple application with subdomains and correct htaccess - by pb.sajjad - 11-18-2015, 03:41 AM
RE: CodeIgniter multiple application with subdomains and correct htaccess - by Hobbes - 11-21-2015, 10:26 AM
|