02-19-2009, 03:24 AM
[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
But i was looking for a way to use routes.php instead.
Any suggestion?
Thanks in advance
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