Welcome Guest, Not a member yet? Register   Sign In
Domain routing possibilities in CI?
#24

[eluser]lonka[/eluser]
This one is not working too Sad

But I've try this, and this is almost working:

Code:
RewriteEngine on

RewriteCond %{HTTP_HOST} !(^www.domain.com)
RewriteCond %{HTTP_HOST} ^(www\.)?(.*).domain.com$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^([^\.]+)\. [NC]

RewriteRule ^$ index.php/user/%1 [L]

RewriteCond $1 !^(index.php|images|robots.txt|js|css)
RewriteRule ^(.*)$ index.php/$1 [L]

But this works only for http://user.domain.com I can't make it happen to get http://user.domain.com/sometingElse
I try to add $2 or something similar to RewriteRule ^$ index.php/user/%1 [L] but this is not working at all


Messages In This Thread
Domain routing possibilities in CI? - by El Forum - 03-31-2008, 03:33 PM
Domain routing possibilities in CI? - by El Forum - 03-31-2008, 04:22 PM
Domain routing possibilities in CI? - by El Forum - 03-31-2008, 04:31 PM
Domain routing possibilities in CI? - by El Forum - 04-11-2008, 03:35 PM
Domain routing possibilities in CI? - by El Forum - 04-11-2008, 03:44 PM
Domain routing possibilities in CI? - by El Forum - 04-11-2008, 03:46 PM
Domain routing possibilities in CI? - by El Forum - 04-11-2008, 03:54 PM
Domain routing possibilities in CI? - by El Forum - 04-11-2008, 03:59 PM
Domain routing possibilities in CI? - by El Forum - 04-11-2008, 04:03 PM
Domain routing possibilities in CI? - by El Forum - 04-11-2008, 05:20 PM
Domain routing possibilities in CI? - by El Forum - 04-11-2008, 05:49 PM
Domain routing possibilities in CI? - by El Forum - 04-11-2008, 09:27 PM
Domain routing possibilities in CI? - by El Forum - 05-05-2008, 10:30 AM
Domain routing possibilities in CI? - by El Forum - 05-05-2008, 10:41 AM
Domain routing possibilities in CI? - by El Forum - 05-05-2008, 10:47 AM
Domain routing possibilities in CI? - by El Forum - 05-05-2008, 10:58 AM
Domain routing possibilities in CI? - by El Forum - 05-05-2008, 11:02 AM
Domain routing possibilities in CI? - by El Forum - 05-05-2008, 12:57 PM
Domain routing possibilities in CI? - by El Forum - 05-05-2008, 01:21 PM
Domain routing possibilities in CI? - by El Forum - 05-07-2008, 04:56 PM
Domain routing possibilities in CI? - by El Forum - 05-08-2008, 09:54 AM
Domain routing possibilities in CI? - by El Forum - 05-08-2008, 10:25 AM
Domain routing possibilities in CI? - by El Forum - 05-08-2008, 10:35 AM
Domain routing possibilities in CI? - by El Forum - 05-08-2008, 11:21 AM
Domain routing possibilities in CI? - by El Forum - 05-08-2008, 04:06 PM
Domain routing possibilities in CI? - by El Forum - 05-10-2008, 12:16 PM
Domain routing possibilities in CI? - by El Forum - 06-25-2008, 08:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB