WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

About HTTP - HTTPS Redirects

ImagjneAlex

New member

0

0%

Status

Offline

Posts

44

Likes

0

Rep

0

Bits

230

4

Months of Service

0%
The website's .htaccess file is as attached. The site has SSL installed, but both HTTP and HTTPS access are available. How can I redirect HTTP to HTTPS even if someone accesses using HTTP? I have tried a few methods, but even if it redirects to HTTPS, the site still shows the FTP files and the script doesn't work. Therefore, the code to achieve this is: RewriteEngine On RewriteCond %{REQUEST_URI} !^/public/ RewriteRule ^(.*)$ /public/$1 [L,QSA]
 

249

6,622

6,642

Top