Thursday, 27 July 2023

HTTPS To HTTP .htaccess

     <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{HTTPS} on
        RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI}
    </IfModule>
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{HTTPS} on
   RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [NE,R=301,L]   
   RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
   RewriteBase /
   RewriteRule ^index\.php/?$ - [NC,L]
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule . /index.php [L]
   </IfModule>
   <IfModule Litespeed>
   SetEnv noabort 1
</IfModule>
---------------------------------------------------------------------------------------
RewriteOptions inherit
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<ifmodule mod_rewrite.c="">
RewriteEngine On
RewriteCond %{HTTPS} on
#RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=302,NE]
RewriteRule ^(.*)$ http://avtech.mooo.com/ceriatv%{HTTP:Authorization} [L,R=301,NE]
#RewriteRule ^(.*)$ http://1.ceriatv.co.id%{HTTP:Authorization} [L,R=301,NE]
#RewriteEngine On
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#RewriteBase /
#RewriteRule ^index\.php$ - [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /index.php [L]
</ifmodule>

No comments:

Post a Comment