Salve, ho un problema nella configurazione di htaccess su un webserver online.
Vorrei far si che alcune determinate pagine, precisamente quelle del login vengano criptate attraverso https.
Allego il codice:
<Files "listator.php">
<IfModule mod_ssl.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
<IfModule !mod_ssl.c>
order allow,deny
</IfModule>
</Files>
In questo caso quando si arriva al file listator.php url diventa https, ma anche dopo aver effettuato il logout o vado direttamente alla homepage (index.php) url rimane sempre in https.
Un altra cosa strana quando url e' https, non vengono caricate tutte le immagini presenti nel sito.
Alleggo tutto il codice del file htaccess
RewriteEngine on
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName seven.com
AuthUserFile /home/seven/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/seven/public_html/_vti_pvt/service.grp
RewriteCond %{HTTP_REFERER} !^http://seven.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://seven.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.seven.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.seven.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
<Files "listator.php">
<IfModule mod_ssl.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
<IfModule !mod_ssl.c>
order allow,deny
</IfModule>
</Files>
Grazie infinite dell'aiuto
Vorrei far si che alcune determinate pagine, precisamente quelle del login vengano criptate attraverso https.
Allego il codice:
<Files "listator.php">
<IfModule mod_ssl.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
<IfModule !mod_ssl.c>
order allow,deny
</IfModule>
</Files>
In questo caso quando si arriva al file listator.php url diventa https, ma anche dopo aver effettuato il logout o vado direttamente alla homepage (index.php) url rimane sempre in https.
Un altra cosa strana quando url e' https, non vengono caricate tutte le immagini presenti nel sito.
Alleggo tutto il codice del file htaccess
RewriteEngine on
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName seven.com
AuthUserFile /home/seven/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/seven/public_html/_vti_pvt/service.grp
RewriteCond %{HTTP_REFERER} !^http://seven.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://seven.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.seven.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.seven.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
<Files "listator.php">
<IfModule mod_ssl.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
<IfModule !mod_ssl.c>
order allow,deny
</IfModule>
</Files>
Grazie infinite dell'aiuto
Ultima modifica: