1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
| Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteCond %{HTTP_HOST} !www.monsite.fr$
#RewriteRule ^(.*)$ http://www.monsite.fr/$1 [R=301,L]
RewriteCond %{HTTP_HOST} www.monsite.info$
RewriteRule ^(.*)$ http://www.monsite.fr/$1 [R=301,L]
RewriteCond %{HTTP_HOST} monsite.info$
RewriteRule ^(.*)$ http://www.monsite.fr/$1 [R=301,L]
RewriteCond %{HTTP_HOST} www.monsite.eu$
RewriteRule ^(.*)$ http://www.monsite.fr/$1 [R=301,L]
RewriteCond %{HTTP_HOST} monsite.eu$
RewriteRule ^(.*)$ http://www.monsite.fr/$1 [R=301,L]
RewriteCond %{HTTP_HOST} www.monsite.com$
RewriteRule ^(.*)$ http://www.monsite.fr/$1 [R=301,L]
RewriteCond %{HTTP_HOST} monsite.com$
RewriteRule ^(.*)$ http://www.monsite.fr/$1 [R=301,L]
RewriteCond %{HTTP_HOST} www.monsite.org$
RewriteRule ^(.*)$ http://www.monsite.fr/$1 [R=301,L]
RewriteCond %{HTTP_HOST} monsite.org$
RewriteRule ^(.*)$ http://www.monsite.fr/$1 [R=301,L]
RewriteRule ^(.*)/littoral/herault/villeneuve-maguelonne(.*)$ $1/littoral/herault/villeneuve-maguelone$2 [R=301,L]
#images/
RewriteRule ^images$ images/spacer.gif [L]
RewriteRule front_dev.php /index.php [R=301,L]
RewriteRule ^dev/(.*)$ /$1 [R=301,L]
# uncomment the following line, if you are having trouble
# getting no_script_name to work
#RewriteBase /
# we skip all files with .something
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
# no, so we redirect to our front web controller
RewriteRule ^blog/wp-admin(.*)$ blog/wp-admin/index.php [L]
RewriteRule ^blog/(.*)$ blog/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly" |
Partager