YARQ (yet another routing question) re: sub domains |
[eluser]unsub[/eluser]
Hi I've searched the forum but perhaps my skill or comprehension is lacking, for I can't seem to milk a working solution out of everything I've read. I am trying to send all requests to http://www.domain.com/subdomain/$whatever to here: http://www.domain.com/subdomain/page/index function/$whatever, where $whatever will be used as the argument for index. I can only get this to work by typing in http://www.domain.com/subdomain/page/$whatever. It accepts the argument (as uri segment 2) and functions nicely. Here is what I have in my routes: Code: $route['default_controller'] = "page"; here is what is in my .htaccess Code: #DirectoryIndex index.php I'm not looking for anyone to write my code for me here, but maybe some reading material that goes into some more depth than the user manual on routing for subdomains? Thanks bunches
[eluser]unsub[/eluser]
crap... ok, I got it working, but I still need advice, as the way I have it working now seems like it's a bit ugly... I changed the .htaccess rules to this: Code: RewriteEngine on but left the routes the same. I don't know... should I be using both? this just seems... inelegant to me. thnx for any advice on this. |
Welcome Guest, Not a member yet? Register Sign In |