AAymeric Posted May 24, 2010 Share Posted May 24, 2010 Bonjour,J'ai un soucis avec mon hébergement chez OVH. J'essaye tant bien que mal de rediriger avec un .htaccess, http://blabla.nomdedomaine.fr vers ce que je veux.Pour ce faire le mod_rewrite est installé et marche et j'ai crée un wildcard.Seulement voilà, si j'essaye d'accèder à http://blabla.nomdedomaine.fr, OVH me bloque et m'envoie sur mail.h3ro.frAlors que je suis persuadé que ma redirection peut marcher puisque dans ma configuration actuelle, www.nomdedomaine.fr est bien redirigé vers ce que je veux.Mon .htaccess : Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} ([a-zA-Z]+).nomdedomaine.fr RewriteRule ^$ /T/page-test.php [L] Si quelqu'un a déjà rencontré l'erreur ou a une idée, je suis prenneur. Merci à tous. Link to comment Share on other sites More sharing options...
bijububu Posted September 6, 2010 Share Posted September 6, 2010 put this into .htaccess # URL rewriting module activation RewriteEngine On # BEGIN PrestaShop URL rewriting rules RewriteRule ^([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 errors ErrorDocument 404 /404.php # END PrestaShop URL rewriting rules Link to comment Share on other sites More sharing options...
AAymeric Posted September 6, 2010 Author Share Posted September 6, 2010 Ca ne marche pas. J'ai de toute façon abandonné le problème =(Merci quand même ^^ 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