Domain routing possibilities in CI? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Domain routing possibilities in CI? (/showthread.php?tid=7248) |
Domain routing possibilities in CI? - El Forum - 05-08-2008 [eluser]Sean Murphy[/eluser] You shouldn't need that RewriteCond that restricts the REQUEST_URI to letters, numbers, and forward slashes. It might even cause problems for you down the road. Give this a shot: Code: RewriteEngine on Domain routing possibilities in CI? - El Forum - 05-08-2008 [eluser]lonka[/eluser] Thank you for your help, but it's not working too Now I don't get error 500 but nothing happens, main page is loading not user page. Maybe it's time for me to read a book about mod_rewrite Domain routing possibilities in CI? - El Forum - 05-08-2008 [eluser]sophistry[/eluser] did you see this page: http://httpd.apache.org/docs/1.3/misc/rewriteguide.html it has a sample called virtual user hosts. perhaps it can help. Domain routing possibilities in CI? - El Forum - 05-08-2008 [eluser]lonka[/eluser] This one is not working too But I've try this, and this is almost working: Code: RewriteEngine on 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 Domain routing possibilities in CI? - El Forum - 05-08-2008 [eluser]evanwalsh[/eluser] This topic is relevant to my interests. I hope this issue is resolved soon, as I want a similar feature. Domain routing possibilities in CI? - El Forum - 05-10-2008 [eluser]Sean Murphy[/eluser] Well, I guess I should have just tested this out in the first place to get it right the first time. I set up an installation to work out the bugs, and I got it working. Hopefully it will work for you too! Here's what my .htaccess looks like: Code: <IfModule mod_rewrite.c> Domain routing possibilities in CI? - El Forum - 06-25-2008 [eluser]lonka[/eluser] I finally get to work with this one: Code: RewriteEngine on I have subdomain name.example.com that points to example.com/profile/name/ But on one server this works perfect, and on another with apache I got error When I try to enter for example nightmare.example.com Log from mod rewrite: Code: [nightmare.example.com/sid#801439e8][rid#803ef030/initial/re#50] (1) [per-dir /var/www/vhosts/example.com/httpdocs/] internal reect with /index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/profile/nightmare/index.php/p it's stuck on loop, I don't know what to do with this Any help? |