'Rewrite rule for targeting http only (no https)

A website that I manage was currently turned via cpanel to redirect at https. Unfortunately a single site/folder/program works only in http and not in https (idk why). Is there any rewrite rule that will force this site to load in http only?

The whole thing is made like this:

  • https://example.com --> HTTPS (ok and desired to be in https)

  • http://example.com/NastyWebApp --> HTTP (doesn't work in https)

What I need, is to force the NastyWebApp to load in http only.



Solution 1:[1]

Perhaps not the ideal solution, but a solution that will do the job, via Javascript:

<HTML><HEAD><title>Nasty Web App</title></HEAD>
<body><SCRIPT LANGUAGE="JavaScript">(window.location.replace("http://stackoverflow.com/nastywebapp.php"));

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Yannis Dran