Ann Posted October 31, 2009 Share Posted October 31, 2009 Bonjour, Je souhaiterais modifier mon .htaccess de façon à ce que seules les pages rewritées soient prises en compte. Quel est le script à modifier ?Je suis chez OVH avec un ( ex ) 90 plan et une version V.1.1Merci d'avanceAnnVoici mon htaccess actuel :# URL rewriting module activationRewriteEngine onRewriteCond %{HTTP_HOST} ^ann-secret.com$ [NC]RewriteRule ^(.*)$ http://www.ann-secrets.com/$1'>http://www.ann-secrets.com/$1 [R=301,L] # URL rewriting rulesRewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.phpSetEnv PHP_VER 5SetEnv REGISTER_GLOBALS 0ErrorDocument 401 http://www.ann-secrets.com/ErrorDocument 403 http://www.ann-secrets.com/ErrorDocument 404 http://www.ann-secrets.com/ErrorDocument 500 http://www.ann-secrets.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now