I would like to know if someone can help me do this simple redirect. I tried at least 7 examples i found here but i couldnt make it work. First of all i have mod_rewrite enabled and *.mydomain.com DNS configured to point to same DNS as the www.
Im using codeigniter so it would be great to leave the rules i already have:
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
what im trying to achieve is simple:
anything.domain.com
-> should point ( if possible mask )
www.domain.com/index.php?/profile/anything
and also:
anything.domain.com/stats/12/.. ( etc )
-> should point ( if possible mask )
www.domain.com/index.php?/profile/anything/stats/12/..
Thanks in advance!!