menu
Configurer .htaccess symfony avec https et sans www

Configurer .htaccess symfony avec https et sans www

RewriteEngine On



RewriteCond %{HTTPS} off



RewriteRule ^(.*)$ https://roadtodev.com/$1 [L,R=301]



RewriteCond %{HTTP_HOST} ^www\.(([a-z0-9_]+\.)?roadtodev\.com)$ [NC]



RewriteRule .? http://%1%{REQUEST_URI} [R=301,L]



RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ web/$1 [QSA,L]

<