1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| <VirtualHost *:80>
ServerAdmin webmaster@monsite.com
DocumentRoot /home/Sites/monsite/www/
ServerName monsite.dev
ServerAlias dev.monsite
ErrorLog /home/Sites/monsite/logs/error_log
CustomLog /home/Sites/monsite/logs/access_log common
RewriteEngine on
RewriteRule ^/([a-z]{2})/([^/]*)/([^/]*)?$ /index.php?wlang=$1&wpage=$2 [L,QSA]
RewriteRule ^/([a-z]{2})/([^/]*)/([^/]*)/([^/]*)?$ /index.php?wlang=$1&wpage=$2¶m=$3 [L,QSA]
RewriteCond %{HTTPS} !^on$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
<Directory "/home/Sites/monsite/www">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
AddDefaultCharset UTF-8
</VirtualHost> |
Partager