Reputation: 1
I have an apache2 with certbot. I need disable redirect form http to https for a single subdir html/tht. I am develop an app with Mit app inventor and web component not support https, at this time. So I need able html/tht to answer at http
I have read many other post and try to insert:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/tht(/|$) [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
in my config file sites-enabled/default-ssl.conf , but not success, test with curl and from http I receive error 301. Also I try to write .htaccess file in /app. It seem that any request go redirect to https first to execute rewrite. I searched witch grep any config directive but found nothing.
Thank you for help me Saverio
Upvotes: 0
Views: 57