I am using the Zend Framework and have setup a MVC application, so my site's URL is like: domain.com/module-name/controller-name/action-name/?other=stuff
Now I'm trying to make it so that you can access this through: module-name.domain.com/controller-name/action-name/?other=stuff
The key is also that it shouldn't redirect, I want the user to see the same domain "module-name.domain.com" while its serving stuff from domain.com/module-name/controller-name/action-name/?other=stuff
My aim is to allow my users to use there own domains pointing to my application. e.g. clientone.com clienttwo.com sub.clientthree.com They would setup their DNS with: dns1.myapplication.com dns2.myapplication.com
but their domain's will remain the same i.e. clientone.com, while its actually from myapplication.com...
My zend application then checks the server name to serve different content per client.
Not very sure how to mod my current htaccess rules:
Set application environment
SetEnv APPLICATION_ENVIRONMENT development
Set rewrite engine
RewriteEngine On
Set rewrite conditions
RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d
Set rewrite rules
RewriteRule ^.$ - [NC,L] RewriteRule ^.$ index.php [NC,L]