rewriterule shows wrong URL
6 posts
• Page 1 of 1
rewriterule shows wrong URL
Hi,
I have a webapplication working on:
next3.info:83
I want to go there with:
weburen.next3.nl so I used this code:
RewriteEngine on
RewriteCond %{HTTP_HOST} =weburen.next3.nl
RewriteCond %{SERVER_PORT} !^83
RewriteRule ^(.*) http://next3.info:83/ [L]
It goes to:
next3.info:83 so the redirect works
But I want to see:
weburen.next3.nl not next3.info:83
How can I make this work?
I have a webapplication working on:
next3.info:83
I want to go there with:
weburen.next3.nl so I used this code:
RewriteEngine on
RewriteCond %{HTTP_HOST} =weburen.next3.nl
RewriteCond %{SERVER_PORT} !^83
RewriteRule ^(.*) http://next3.info:83/ [L]
It goes to:
next3.info:83 so the redirect works
But I want to see:
weburen.next3.nl not next3.info:83
How can I make this work?
Re: rewriterule shows wrong URL
Hello.
I suppose you need a reverse proxy, instead of redirect. Try these rules instead:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^weburen\.next3\.nl$ [NC]
RewriteRule ^(.*) http://next3.info:83$1 [P]
I suppose you need a reverse proxy, instead of redirect. Try these rules instead:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^weburen\.next3\.nl$ [NC]
RewriteRule ^(.*) http://next3.info:83$1 [P]
Re: rewriterule shows wrong URL
Hello.
The rule is supposed to be on a weburen.next3.nl machine and you are supposed to enter weburen.next3.nl in the browser. The request will then be shadow proxied from weburen.next3.nl to next3.info:83
The rule is supposed to be on a weburen.next3.nl machine and you are supposed to enter weburen.next3.nl in the browser. The request will then be shadow proxied from weburen.next3.nl to next3.info:83
Re: rewriterule shows wrong URL
There is a redirect to http://next3.info:83/ on your site. It is either one of the ISAPI_Rewrite rules which you didn't show or an underlying application issuing this redirect. I suppose the latter.
First please show your exact and complete ISAPI_Rewrite configuration.
If it is underlying application issues a redirect you need to fix it in the application itself. Probably there is some setting in it, etc.
First please show your exact and complete ISAPI_Rewrite configuration.
If it is underlying application issues a redirect you need to fix it in the application itself. Probably there is some setting in it, etc.
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 16 guests