Forum Moderators: phranque

Message Too Old, No Replies

RewriteRule question

         

dhryvastov

9:12 am on Aug 25, 2011 (gmt 0)

10+ Year Member



Hello dear community -

I need to create some kind of proxy using Apache Server.

I tried to use something like
ProxyPass /test1/test2/ http://example.com but had no success because ProxyPass require "/" suffix after the second URL. In my case adding "/" is not working because my URL ends with example.dll and now example.dll part is meant as a directory instead of a file example.dll inside test directory (my IIS server thinks so).

After that I tried to use RewriteRule. For example:
RewriteRule /example/ http://example.com. This time redirection is working perfectly - I see the desired page, but the URL is completely changed to the new one and I want end users to see the first part of the URL unchanged (the part with the server name and port). E.g. if user enters like _http://server1:port1/example/ I would like him to see something like _http://server1:port1/example/... after redirection.

Are there any ability to achieve this?

Any kind of help is greatly appreciated.

Thanks in advance.

[edited by: dhryvastov at 9:55 am (utc) on Aug 25, 2011]

lucy24

9:44 am on Aug 25, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Rule #1:

Always use example.com for your, um, examples. Unlike all other domain names, it will not be changed into a clickable link. People need to be able to see what you wrote.