Answers for "add www to domain htaccess for symfony website"

0

htaccess symfony

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteCond %{REQUEST_URI} !^/public/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /public/$1
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteRule ^(/)?$ public/index.php [L]
Posted by: Guest on June-03-2020

Code answers related to "add www to domain htaccess for symfony website"

Browse Popular Code Answers by Language