'Redirecting to other webpage without changing address
I have a webpage http://example.com. Using the htaccess file I'm redirecting users to the page https://other_domain.com:8081 if they type http://example.com/page in their browser. That works well but the problem is that when redirected, https://other_domain.com:8081 appears in the address bar of the browser. I have added the the following to the top of the htaccess file of the http://example.com webpage but still https://other_domain.com:8081 is shown as the address after redirection:
RewriteEngine On
RewriteRule ^page(.*)$ https://other_domain.com:8081$1 [L,P]
Redirect /page https://other_domain.com:8081
How can this be resolved so that http://example.com/page is shown in the address bar instead of https://other_domain.com:8081?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
