I have a single CI application hosted in say abcd.com
and it has different pages like
- abcd.com/pages/one
- abcd.com/pages/two
- abcd.com/pages/three
now the requirement is when user access one.abcd.com as url (in address bar) then it will display abcd.com/pages/one content
EDIT : but the url in address bar should remain one.abcd.com
similarly two.abcd.com should display abcd.com/pages/two content
how that can be achieved ? as routing only accept the path name excluding domain
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php?/$0 [PT,L]