• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
routes.php and 3rd level domain

#1
[eluser]lerio[/eluser]
Hi everyone,

i was wondering if there's a way to do this:

by typing -> http://word1.mysite.com
apache would call -> http://www.mysite.com/controller1/method1/word1
thus keeping http://word1.mysite.com in the url

i managed to to so by adding this to my .htaccess file

Code:
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST}  !^(www.*)
RewriteCond %{HTTP_HOST}  ^(.*).mysite.com
RewriteRule ^(.*)$ /index.php/controller1/method1/%1 [QSA,L]

But i was looking for a way to use routes.php instead.

Any suggestion?

Thanks in advance


Messages In This Thread
routes.php and 3rd level domain - by El Forum - 02-19-2009, 03:24 AM
routes.php and 3rd level domain - by El Forum - 02-19-2009, 03:30 AM
routes.php and 3rd level domain - by El Forum - 02-19-2009, 03:42 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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