I installed Redmine and so far everything runs smoothly.
Now i want to add a rewrite rule via .htaccess in order to redirect requests from domain.tdl to www.domain.tdl. This is approach works fine with my everyday php projects:
RewriteEngine On
RewriteBase /
# redirect all pages w/o www to www.
RewriteCond %{HTTP_HOST} !^www\.domain\.tdl$
RewriteRule ^(.*)$ http://www.domain.tdl/$1 [L,R=301]
However when i add this to our redmine/public/.htaccess it seems to redirect infinitely (resulting in a timeout/http 500 error).
I tried to look up forums/google for a solution but i only found thousands of contradictory opinions:
- ruby on rails and .htaccess don't work together
- ruby on rails and .htaccess DO work together
- you have to edit your application controller
- you have to edit your mongel config
- and so forth...
Am I missing something? I'm not sure i want to edit my application controller and I'm quite certain I don't have access to any mongrel config (managed server hosting).
RewriteLog /tmp/rewrite.log
andRewriteLogLevel 9
(which must be set in the server config) FTW!