How to force the client to redirect to a specific URL?

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
bashen
Posts: 1
Joined: Thu Oct 13, 2022 7:35 am

How to force the client to redirect to a specific URL?

Post by bashen » Thu Oct 13, 2022 7:40 am

How to force the client to redirect to a specific URL?
Or let the client use hsots on the server
Hope it can be answered, sorry, I'm from China and my language is not fluent
Also, I can't use a local bridge under linux, I can only use windows

nehakakar
Posts: 4
Joined: Tue Jul 04, 2023 6:52 am
Location: India
Contact:

Re: How to force the client to redirect to a specific URL?

Post by nehakakar » Sun Aug 06, 2023 10:05 pm

You typically need to modify the server-side code or configuration. Since you mentioned you can only use Windows,
Open the configuration file for your web server httpd.conf on Apache.
Use the Redirect directive to specify the redirection. For example,
http://yourdomain.com/old-page to http://yourdomain.com/new-page
you can add:

Code: Select all

Redirect /old-page http://yourdomain.com/new-page
Save and restart the web server then use browser developer tools to inspect network requests and redirects or use this tool Redirect Checker This can help you identify where the redirection is happening and potentially trace it back to the source.

Post Reply