Lapiloubilem Posted August 24, 2015 Share Posted August 24, 2015 I have to redirect a massive number or URLs from my old website to my prestashop: So I use a rewriteMap to do this (because my id are diferent) but the physical directory (were my website is) is puted after the domain name in the URL and i don't know how to change this RewriteCond %{QUERY_STRING} ^id_produit\=(.+)$RewriteRule (.*) /$1/%1? [L]RewriteRule ^produit2.asp/(.*)$ ${map_product:$1} [R,L] Redirect me into my map but add /var/www/les-poulettes-bijoux/ in the middle of my URL: /produit2.asp?id_produit=8489 => http://www.lespoulettes-bijoux.fr/var/www/les-poulettes-bijoux/colliers-femme-createur-fantaisie/femme-collier-ras-de-cou-fils-d-argent-et-6-perles-blanches-et-grises-10005.html But i need http://www.lespoulettes-bijoux.fr/colliers-femme-createur-fantaisie/femme-collier-ras-de-cou-fils-d-argent-et-6-perles-blanches-et-grises-10005.html How can I delete that useless part in my URL? Thanks for your help. 1 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