Ajout .htaccess pour chaque environnement

This commit is contained in:
Michael RICOIS 2009-02-19 09:33:15 +00:00
parent 690d236b72
commit 41e99c3579
3 changed files with 72 additions and 0 deletions

24
www/.htaccess-local Normal file
View File

@ -0,0 +1,24 @@
php_value include_path ".:C:\wamp\www\extranet\framework:C:\wamp\www\extranet\includes:C:\wamp\bin\php\php5.2.8\pear"
php_value auto_prepend_file "C:\wamp\www\extranet\config\prepend.php"
php_value auto_append_file "C:\wamp\www\extranet\config\append.php"
#ErrorDocument 400 /error.php?errtyp=400
#ErrorDocument 401 /error.php?errtyp=401
#ErrorDocument 402 /error.php?errtyp=402
#ErrorDocument 403 /error.php?errtyp=403
#ErrorDocument 404 /error.php?errtyp=404
#ErrorDocument 500 /error.php?errtyp=500
#ErrorDocument 501 /error.php?errtyp=501
#ErrorDocument 502 /error.php?errtyp=502
#Options +FollowSymlinks
#RewriteEngine on
#RewriteRule ^(.*).htm$ http://www2.scores-decisions.com/index.php?page=$1 [nc]
#RewriteRule !(index\.php|test\.php|^documents/pdf/courriers(.*)|\.html|\.htm|\.gif|\.css|\.jpg|\.png|\.jar|\.js|\.ico|\.pdf)$ /index.php [L]
#RewriteRule ^img/(.*) /img/$1 [L]
#RewriteRule ^js/(.*) /scripts/$1 [L]
#RewriteRule ^css/(.*) /design/stylesheets/$1 [L]
#RewriteRule ^etatspdf/(.*) /documents/pdf/etats/$1 [L]
#RewriteRule ^(.*)\.htm$ /html/$1.html [L]
#Order Deny,Allow
#Deny from all
#Allow from 82.234.126.118

24
www/.htaccess-server Normal file
View File

@ -0,0 +1,24 @@
php_value include_path ".:/var/www/extranet/framework:/var/www/extranet/includes:/usr/share/php"
php_value auto_prepend_file "/var/www/extranet/config/prepend.php"
php_value auto_append_file "/var/www/extranet/config/append.php"
#ErrorDocument 400 /error.php?errtyp=400
#ErrorDocument 401 /error.php?errtyp=401
#ErrorDocument 402 /error.php?errtyp=402
#ErrorDocument 403 /error.php?errtyp=403
#ErrorDocument 404 /error.php?errtyp=404
#ErrorDocument 500 /error.php?errtyp=500
#ErrorDocument 501 /error.php?errtyp=501
#ErrorDocument 502 /error.php?errtyp=502
#Options +FollowSymlinks
#RewriteEngine on
#RewriteRule ^(.*).htm$ http://www2.scores-decisions.com/index.php?page=$1 [nc]
#RewriteRule !(index\.php|test\.php|^documents/pdf/courriers(.*)|\.html|\.htm|\.gif|\.css|\.jpg|\.png|\.jar|\.js|\.ico|\.pdf)$ /index.php [L]
#RewriteRule ^img/(.*) /img/$1 [L]
#RewriteRule ^js/(.*) /scripts/$1 [L]
#RewriteRule ^css/(.*) /design/stylesheets/$1 [L]
#RewriteRule ^etatspdf/(.*) /documents/pdf/etats/$1 [L]
#RewriteRule ^(.*)\.htm$ /html/$1.html [L]
#Order Deny,Allow
#Deny from all
#Allow from 82.234.126.118

24
www/.htaccess-serverdev Normal file
View File

@ -0,0 +1,24 @@
php_value include_path ".:/sites/extranet/framework:/sites/extranet/includes:/usr/share/php"
php_value auto_prepend_file "/sites/extranet/config/prepend.php"
php_value auto_append_file "/sites/extranet/config/append.php"
#ErrorDocument 400 /error.php?errtyp=400
#ErrorDocument 401 /error.php?errtyp=401
#ErrorDocument 402 /error.php?errtyp=402
#ErrorDocument 403 /error.php?errtyp=403
#ErrorDocument 404 /error.php?errtyp=404
#ErrorDocument 500 /error.php?errtyp=500
#ErrorDocument 501 /error.php?errtyp=501
#ErrorDocument 502 /error.php?errtyp=502
#Options +FollowSymlinks
#RewriteEngine on
#RewriteRule ^(.*).htm$ http://www2.scores-decisions.com/index.php?page=$1 [nc]
#RewriteRule !(index\.php|test\.php|^documents/pdf/courriers(.*)|\.html|\.htm|\.gif|\.css|\.jpg|\.png|\.jar|\.js|\.ico|\.pdf)$ /index.php [L]
#RewriteRule ^img/(.*) /img/$1 [L]
#RewriteRule ^js/(.*) /scripts/$1 [L]
#RewriteRule ^css/(.*) /design/stylesheets/$1 [L]
#RewriteRule ^etatspdf/(.*) /documents/pdf/etats/$1 [L]
#RewriteRule ^(.*)\.htm$ /html/$1.html [L]
#Order Deny,Allow
#Deny from all
#Allow from 82.234.126.118