Sub Domain redirection with .htaccess - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Sub Domain redirection with .htaccess (/showthread.php?tid=2191) |
Sub Domain redirection with .htaccess - El Forum - 07-21-2007 [eluser]Phil Sturgeon[/eluser] Ok so this isnt STRICTLY a CI question, but its a question people can use with CodeIgnitor... If I have Quote:http://john.doe.example.com how can I make it go to Quote:http://example.com/controller/method/john/doe/ Before you say "Duh use mod_rewrite", dont. have been trying loads of rules for ages, so while mod_rewrite is the answer, its not particularly easy. Sub Domain redirection with .htaccess - El Forum - 07-21-2007 [eluser]esra[/eluser] I'm not sure if this will help in your particular case: http://ellislab.com/forums/viewthread/47523/ Sub Domain redirection with .htaccess - El Forum - 07-22-2007 [eluser]Phil Sturgeon[/eluser] Closest I can get with links from that topic is: Quote:RewriteEngine on And it doesnt work... |