WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

About HTTP to HTTPS Redirection

felicimo

New member

0

0%

Status

Offline

Posts

39

Likes

0

Rep

0

Bits

205

4

Months of Service

0%
The website's .htaccess file is as attached. The site has SSL installed, but there is access to both http and https. How can I redirect to https even if someone enters through http? I have tried a few methods, but even if it redirects to https, the site shows FTP files and the script does not work. Therefore, the following code snippet has been added to the .htaccess file:

```apache
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA]
```
 

249

6,622

6,642

Top