Htaccess problem - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Htaccess problem (/showthread.php?tid=2164) |
Htaccess problem - harshalone - 2011-09-08 hi there i figure out a problem in htaccess file of getsimple i.e., i want my domain to always go to www.domain.com instead of domain.com so i added a line of code in htaccess file which is RewriteCond %{HTTP_HOST} ^domain\.com$ RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] but after adding this code the site goes down... any input on this please Htaccess problem - Connie - 2011-09-08 There is no hosting panel where you can define which domain (with or without www) points to which directory on the server? For .htaccess, read here; http://kb.mediatemple.net/questions/85/Using+.htaccess+rewrite+rules#gs/add-www-or-https they show this way: Code: Options +FollowSymLinks you see the difference? your line ends with "domain\.com$" but the working example which I tested, ends with "example.com [NC] [NC]" test it out! Htaccess problem - Vulch - 2011-09-10 I'd normally expect something to have been logged by the web server in its error log that gives more detail about what it's objecting to. |