Salut,
J'ai un petit problème d'url rewriting avec mon site
J'ai ajouté trop de code et je ne trouve plus l'érreur
Dans mon htaccess, j'ai mis ceci
RewriteEngine on RewriteBase / rewritecond %{http_host} ^example.com [nc] rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc] RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com/.*$ [NC] RewriteRule \.(gif|swf|flv|png)$ /feed/ [R=302,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ http://example.com/$1/ [L,R=301]
la redirection marche pour ce lien:
http://example.com --> http://www.example.com/
et pour celui là aussi
http://example.com/video/b6a/Im-A-Hot-Dog/ --> http://www.example.com/video/b6a/Im-A-Hot-Dog/
la redirection ne fonctionne pas pour ceux ci:
http://example.com/videos
qui donne:
http://www.example.com/http:/www.example.com/videos/
un autre exemple:
http://example.com/video/b6a/Im-A-Hot-Dog --> http://www.example.com/http:/www.example.com/video/b6a/Im-A- Hot-Dog/
Quelqu'un aurait-il la solution?
merci