how do I redirect from a subdirectory to another directory, but strip off the original subdirectory
Posted
by Eric Cope
on Stack Overflow
See other posts from Stack Overflow
or by Eric Cope
Published on 2010-03-26T23:55:07Z
Indexed on
2010/03/27
0:33 UTC
Read the original article
Hit count: 322
I have a Ruby on Rails app running on 12001. I am currently redirecting a subdomain to 127.0.0.1:12001 using some ReWriteCond detection. Now I want to redirect my subdirectory to that rails app.
http[s]://domain.com/redmine
to
127.0.0.1:12001
The current rules apply REQUEST_URI to the above rails path, but I need to strip "/redmine" from the front of REQUEST_URI...
Any ideas?
© Stack Overflow or respective owner