-1

How to redirect all link HTTPS to HTTP in subfolder hidden by using mod_rewrite

For example, https://homepage.com/public to http://homepage.com/public with public is hidden URL

Mai Tai
  • 1
  • 1
  • Please search the site for similar questions before creating a new question; this has already been asked/answered. – lax1089 May 12 '17 at 15:12
  • Possible duplicate of [change to https and redirect to subfolder rule in .htaccess](http://stackoverflow.com/questions/36008195/change-to-https-and-redirect-to-subfolder-rule-in-htaccess) – NaveenKumar Namachivayam May 12 '17 at 19:57

1 Answers1

0

You can try this

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}

Note, This site has similar questions with accepted answers!

Akshay N Shaju
  • 355
  • 4
  • 17