rewrite rule not working with redirects.
6 posts
• Page 1 of 1
rewrite rule not working with redirects.
I have put in a new rule on our reverse proxy for a new site thats being implemented:
RewriteCond Host: totalmobile.xyz
RewriteProxy (.*) https://totalmobile.xyz:8449$1 [I]
Most the of the website works, however certain URL's do not, such as:
https://totalmobile.xyz/Live/WebAdmin/A ... n#settings
The URL's that do not work have a "#" in them. I think the proxy ignores anything after the # and so the rewrite doesn't work. Or the URL is getting mangled somehow.
Is there any way of getting this to work using isapi rewrite v2?
many thanks - Gus
RewriteCond Host: totalmobile.xyz
RewriteProxy (.*) https://totalmobile.xyz:8449$1 [I]
Most the of the website works, however certain URL's do not, such as:
https://totalmobile.xyz/Live/WebAdmin/A ... n#settings
The URL's that do not work have a "#" in them. I think the proxy ignores anything after the # and so the rewrite doesn't work. Or the URL is getting mangled somehow.
Is there any way of getting this to work using isapi rewrite v2?
many thanks - Gus
Re: rewrite rule not working with redirects.
Hello.
Part after '#' is called HTML Bookmark and is intended for client browser so never sent to the server at all. Thus this part cannot be proxied because proxy server does not receive it.
Your problem must be somewhere in client side JavaScript that parses or sends this link incorrectly.
Part after '#' is called HTML Bookmark and is intended for client browser so never sent to the server at all. Thus this part cannot be proxied because proxy server does not receive it.
Your problem must be somewhere in client side JavaScript that parses or sends this link incorrectly.
Re: rewrite rule not working with redirects.
Hi Yaroslav - many thanks for replying to me.
I can see what you mean, however if I put an entry in my hosts file and turn off the websense proxy so I hit the website directly rather than going out and then back in through the reverse proxy it all works, so it kind of indicates that its the RP at fault.
thanks - Gus
I can see what you mean, however if I put an entry in my hosts file and turn off the websense proxy so I hit the website directly rather than going out and then back in through the reverse proxy it all works, so it kind of indicates that its the RP at fault.
thanks - Gus
Re: rewrite rule not working with redirects.
This may indicate RP triggers the error sequence. Please show an example online where I can see non working links so I could tell more about it.
Re: rewrite rule not working with redirects.
Hi Yaroslav - I cant give you the full URl but the last bit is like this:
WebAdmin/Administration/Administration#settings
you would also need to log into the website to hit the full URL.
cheers - Gus
WebAdmin/Administration/Administration#settings
you would also need to log into the website to hit the full URL.
cheers - Gus
Re: rewrite rule not working with redirects.
There is not much I can do without seeing the page behavior. As I said these must be something with client side script involved, maybe some hardcoded URLs, etc.
On other hand the '#' symbol in the link may not be connected to the error at all. Is the same link without '#' works? What kind of error you are getting?
On other hand the '#' symbol in the link may not be connected to the error at all. Is the same link without '#' works? What kind of error you are getting?
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests