0
Mon fichier .htaccess pour un projet Kohana 3.3 est:index.php rewrite échoue après Apache 2.2 à 2.4 mise à jour
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase/
# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>
# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]
Suivant les conseils de Eric I ont mis à jour le htaccess à ce qui suit:
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase/
# Protect hidden files from being viewed
<Files ".*">
Require all denied
</Files>
# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule ^(.*)$ index.php/$0 [PT]
Je
mis à jour l'hôte virtuel pour inclure:
<Directory /srv/www/example.com/public_html/>
Require all granted
</Directory>
Ai-je raté quelque chose?
Que disent vos journaux d'erreur Apache? – MonkeyZeus
Recevez-vous 404 maintenant? – anubhava
Vous devriez lire http://httpd.apache.org/docs/2.4/upgrading.html à propos de la partie permettre de refuser – Eric