开发者

htaccess redirect to https (in some cases)

开发者 https://www.devze.com 2023-01-29 05:37 出处:网络
how can i create directive in .htaccess that will redirect me to specific port (on same url), if url is https?

how can i create directive in .htaccess that will redirect me to specific port (on same url), if url is https?

ie. i have https://mysite.com/file.php:8080, it shoud redirect me to https://mysite.comfile.php:8088

or

http://mysite.com/file.php:8080, it shoud r开发者_如何学JAVAedirect me to https://mysite.comfile.php:8088

so, it have to redirect me to https and port 8088

thank you in advance on your help!


what u r asking has to be done through apache configuration(httpd.conf) not through htaccess.. you need to have ssl certifate for your server..

0

精彩评论

暂无评论...
验证码 换一张
取 消