Redirect removes formatting and links
Added by Anne-Marie Charrett about 15 years ago
Hi I have installed redmine on my shared host site. It works fine on http://testingtimes.ie:12008
when I try and redirect using the instructions in:
http://www.redmine.org/wiki/redmine/HowTo_Install_Redmine_in_a_sub-URI
using the instructions in:
Using Rails features (prefered solution)¶
Add the following line at the end of your config/environment.rb :
ActionController::AbstractRequest.relative_url_root = "/redmine"
Rails will then prefix all links with "/redmine". It can be considered as the simplest, cleanest and most flexible solution. Then restart your application.
the redirect sort of works, in that I get the url working, but any formatting is lost. Also, the links seem to be broken. You can see this at: http://bugs.testingtimes.ie
I have attached two snaphshots.
Any ideas what I have incorrectly done/configured ?
redirect.jpg (78.8 KB) redirect.jpg | |||
redmineport12008.jpg (79.5 KB) redmineport12008.jpg |
Replies (1)
RE: Redirect removes formatting and links - Added by Anne-Marie Charrett about 15 years ago
Hi there,
I managed to find an answer in the forums. I changed the .htaccess to
RewriteRule ^(.*)$ "http://127.0.0.1:12008%{REQUEST_URI}" [P,QSA,L]
works beautifully.