mardi 16 janvier 2018

.htaccess - how to redirect https:// to http:// for specific url

This is my current .htaccess file. My project has https:// already but i wanted to open specific url without https . Is there any way i could forces one specific url to http?

<IfModule mod_rewrite.c>
        <IfModule mod_negotiation.c>
            Options -MultiViews
        </IfModule>

        RewriteEngine On

        # Redirect Trailing Slashes If Not A Folder...
        RewriteCond %{HTTPS} off
        RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


        # Handle Front Controller...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^ index.php [L]

        # Handle Authorization Header
        RewriteCond %{HTTP:Authorization} .
        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    </IfModule>



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2rhXQD1
via IFTTT

Aucun commentaire:

Enregistrer un commentaire