• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Advanced Controller Routing (based on domain)

#6
[eluser]Taftse[/eluser]
Hey stealthify,

you could create multiple domain folders within the public_html folder
in each domain folder you have a index.php and a .htacces file (forward the domain to the folder)
make sure that the directory for the application folder is set correct in the index.php
then you just add a .htaccess file like this

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt|user_guide)
RewriteRule ^(.*)$ ./index.php?/domain1/$1 [L]

where domain1 is the name of the module folder

you can then do the same for domain 2,3,4,5,..... etc

this is the way i do it for all domains and sub domains (per project)

hope this helps

Regards

Taftse


Messages In This Thread
Advanced Controller Routing (based on domain) - by El Forum - 07-05-2011, 08:18 AM
Advanced Controller Routing (based on domain) - by El Forum - 07-05-2011, 08:19 PM
Advanced Controller Routing (based on domain) - by El Forum - 07-05-2011, 10:39 PM
Advanced Controller Routing (based on domain) - by El Forum - 07-05-2011, 11:02 PM
Advanced Controller Routing (based on domain) - by El Forum - 07-07-2011, 08:58 AM
Advanced Controller Routing (based on domain) - by El Forum - 07-07-2011, 09:23 AM
Advanced Controller Routing (based on domain) - by El Forum - 07-07-2011, 09:35 AM
Advanced Controller Routing (based on domain) - by El Forum - 07-07-2011, 09:41 AM
Advanced Controller Routing (based on domain) - by El Forum - 07-08-2011, 12:42 AM
Advanced Controller Routing (based on domain) - by El Forum - 07-08-2011, 06:07 AM
Advanced Controller Routing (based on domain) - by El Forum - 07-08-2011, 06:18 AM
Advanced Controller Routing (based on domain) - by El Forum - 07-08-2011, 06:43 AM
Advanced Controller Routing (based on domain) - by El Forum - 07-08-2011, 07:09 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.