RewriteRule ou redirectPermanent ?
Bonjour
j ai un petit souci : voici mon htaccess
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| DirectoryIndex index.html index.php
<IfModule mod_rewrite.c>
RewriteEngine on
# Pleas note that RewriteBase setting is obsolete use it only in case you experience some problems with SEO addon.
# Some hostings require RewriteBase to be uncommented
# Example:
# Your store url is <a href="http://www.yourcompany.com/store/cart" target="_blank">http://www.yourcompany.com/store/cart</a>
# So "RewriteBase" should be:
# RewriteBase /store/cart
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !\.(png|gif|ico|swf|jpe?g|js|css)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]
</IfModule> |
sur le même domaine je dois rediriger mes pages
mondomaine/products/monproduit.html est devenu mondomaine/monproduit.html
j'ai essayé ceci
Code:
RedirectMatch 301 ^/pages/(.*)$ mondomaine/$1
et je me retrouve avec une url avec à la fin ?sef_rewrite
une aide serait apprécié
merci