Bonjour
Depuis quelques jours, je bataille pour faire fonctionner la réécriture d'URL pour mon site perso hébergé chez OVH.
Je dispose d'un fichier .htaccess au même niveau que cgi-bin et www ayant comme contenu:
J'obtiens une erreur 404
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 # $Id: .htaccess,v 1.1 2007/11/22 14:00:00 olivier Exp $ # # Don't forget chmod 644 # # Protects this file from public view <Files .htaccess> order allow,deny deny from all </Files> # Defines the differents HTTP errors ErrorDocument 302 /cgi-bin/error.cgi?302 ErrorDocument 401 /cgi-bin/error.cgi?401 ErrorDocument 403 /cgi-bin/error.cgi?403 ErrorDocument 404 /cgi-bin/error.cgi?404 ErrorDocument 500 /cgi-bin/error.cgi?500 # The rewrite addresses Options +FollowSymlinks RewriteEngine on RewriteBase /www # This website is temporarily down for Maintenance. RewriteCond %{REQUEST_URI} !/cgi-bin/error.cgi$ RewriteCond %{REQUEST_URI} !/cgi-bin/redirect.cgi$ RewriteCond %{REQUEST_URI} !/tcsh.css$ RewriteCond %{REQUEST_URI} !/img/back.gif$ RewriteCond %{REQUEST_URI} !/img/obsd.gif$ RewriteCond %{REMOTE_ADDR} !^0\.0\.0\.0 RewriteRule (.*) http://www.oregnier.org/$ [R=302,L] # The rewrite addresses / Homepage RewriteRule ^openbsd-42.html$ /cgi-bin/redirect.cgi?page=openbsd-42 [L] RewriteRule ^developpez-homepage.html$ /cgi-bin/redirect.cgi?page=developpez [L] RewriteRule ^personal-space-on-developpez.html$ /cgi-bin/redirect.cgi?page=oregnier [L] RewriteRule ^bsd-heading-on-developpez.html$ /cgi-bin/redirect.cgi?page=bsd [L] RewriteRule ^openbsd-homepage.html$ /cgi-bin/redirect.cgi?page=openbsd [L] RewriteRule ^a-colorful-shell-with-openbsd.html$ /cgi-bin/redirect.cgi?page=obsd-colors-shell [L] RewriteRule ^write-my-own-man-page-with-openbsd.html$ /cgi-bin/redirect.cgi?page=obsd-manual-page [L] RewriteRule ^making-a-bootable-openbsd-41-installation-cdrom.html$ /cgi-bin/redirect.cgi?page=obsd-cdrom-41 [L] RewriteRule ^leave-me-your-feedback.html$ /cgi-bin/redirect.cgi?page=leave-me-your-feedback [L] RewriteRule ^pgp-keyservers.html$ /cgi-bin/redirect.cgi?page=pgp-keyservers [L]
Qu'en pensez-vous ?
Merci d'avance
Partager