[Opened] Page blanche sur serveur web
Posted by laurentj on 09/27/2012 12:37
et si tu vas directement sur /accueil, sans passer par le index, ça donne quoi ?
Et dans ton url, il n'y a pas de index.php ? tu as alors bien configuré la réécriture d'url avec mod_rewrite dans un htaccess ? Et si tu as utilisé rewrite, ce ne serait pas ce .htaccess qui déconne ?
[Opened] Re: Page blanche sur serveur web
Posted by vigier on 10/03/2012 18:09
Bonjour,
En effet si je vais sur /accueil la page s'affiche correctement. Le problème intervient dès qu'il y a redirection.
Concernant la réécriture d'urls voici une copie de mon fichier .htaccess
## If you experience problems on your site block out the operations listed below ## This attempts to block the most common type of exploit `attempts` to Jelix ! # # Block out any script trying to set a TO_BE_DEFINED value through the URL #### RewriteCond %{QUERY_STRING} TO_BE_DEFINED(=|\%3D) [OR] # Block out any script trying to base64_encode crap to send via URL RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] # Block out any script that includes a <script> tag in URL RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] # Block out any script trying to set a PHP GLOBALS variable via URL RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] # Block out any script trying to modify a _REQUEST variable via URL RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) # Send all blocked request to homepage with 403 Forbidden error! RewriteRule ^(.*)$ index.php [F,L] # ########## End - Rewrite rules to block out some common exploits RewriteBase / RewriteCond %{THE_REQUEST} ^(GET|POST|HEAD)\ (/.*)?/index.(htm|html|php|asp) RewriteRule ^(.*)index.(htm|html|php|asp)$ /$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/themes/ RewriteRule ^(.*)$ index.php/$1 [L,QSA] </IfModule> <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE application/x-httpd-php AddOutputFilterByType DEFLATE application/x-httpd-fastphp AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/atom_xml AddOutputFilterByType DEFLATE application/x-javascript </IfModule> #<IfModule mod_expires.c> # ExpiresActive On # ExpiresDefault "access plus 15 minutes" # ExpiresByType application/rss+xml "access plus 15 minutes" # ExpiresByType application/atom_xml "access plus 15 minutes" # ExpiresByType image/* "access plus 1 day" # ExpiresByType video/x-flv "access plus 1 day" # ExpiresByType application/x-shockwave-flash "access plus 1 day" # ExpiresByType image/x-icon "access plus 1 year" # ExpiresByType text/css "access plus 10 years" # ExpiresByType application/pdf "access plus 10 years" # ExpiresByType application/x-javascript "access plus 10 years" #</IfModule>