HTACCESS: Force www - 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: HTACCESS: Force www (/showthread.php?tid=15749) |
HTACCESS: Force www - El Forum - 02-13-2009 [eluser]codex[/eluser] I have this, which is working alright. But I'm wondering if the domain itself can be made dynamic (so without explicitly entering the domain). Code: RewriteCond %{HTTP_HOST} ^domain.nl [NC] HTACCESS: Force www - El Forum - 02-18-2009 [eluser]Kopel[/eluser] I'm looking for the same thing. The goal is to have a htaccess file that works on local and on production without any update. HTACCESS: Force www - El Forum - 02-18-2009 [eluser]TheFuzzy0ne[/eluser] Please see my first post in [url="http://ellislab.com/forums/viewthread/105759/"]this thread[/url]. HTACCESS: Force www - El Forum - 02-18-2009 [eluser]Kopel[/eluser] It works, thanks TheFuzzy0ne! Code: RewriteCond %{HTTP_HOST} !^www\. |