bostamaster Posted December 26, 2013 Share Posted December 26, 2013 Hello, I want to migrate from woocommerce on wordpress to prestashop and I have to keep the same urls as much as I can. I did not know how to remove ".html" i also could not remove "info/" in the path of cms pages in SEO/URL menu. PS: I installed cleanurls and it removed ids from product pages which is good. Link to comment Share on other sites More sharing options...
El Patron Posted December 26, 2013 Share Posted December 26, 2013 be very careful that however you end up doing this (there are plenty of examples outside of ps forum to do this using rewrites via .htaccess) that your sitemap also reflects this. Link to comment Share on other sites More sharing options...
bostamaster Posted December 26, 2013 Author Share Posted December 26, 2013 be very careful that however you end up doing this (there are plenty of examples outside of ps forum to do this using rewrites via .htaccess) that your sitemap also reflects this. I have to be careful from what? sitemap reflecting what? sorry i did not understund. Link to comment Share on other sites More sharing options...
El Patron Posted December 26, 2013 Share Posted December 26, 2013 It may 'not' be any real issue, I remember reading something about 'possible' issue where the sitemap has .html in url's but the known resolved links did not. Something you may want to search for yourself outside of ps. Link to comment Share on other sites More sharing options...
bostamaster Posted December 27, 2013 Author Share Posted December 27, 2013 Yes but i am migrating from woocommerce; so I need to keep the same URLs Link to comment Share on other sites More sharing options...
NemoPS Posted December 27, 2013 Share Posted December 27, 2013 As far as I know, it should be enough to simply get rid of .html in the seo and urls page (urls schema tab) I just tried and it works for me Link to comment Share on other sites More sharing options...
bostamaster Posted December 31, 2013 Author Share Posted December 31, 2013 As far as I know, it should be enough to simply get rid of .html in the seo and urls page (urls schema tab) I just tried and it works for me Do you use cleanurls. because i use cleanurls to hide id from urls but when i try to remove .html i get products not found in the front Link to comment Share on other sites More sharing options...
NemoPS Posted December 31, 2013 Share Posted December 31, 2013 no, I don't use that, it might not be compatible with the result you want to achieve, I used the regular SEO and URLs tab in the back office Link to comment Share on other sites More sharing options...
El Patron Posted December 31, 2013 Share Posted December 31, 2013 personally I would look for solution using .htaccess rewrites, there are many examples outside of prestashop here is one example you can try NOTE: THIS IS UNTESTED <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html </IfModule> Link to comment Share on other sites More sharing options...
bostamaster Posted January 2, 2014 Author Share Posted January 2, 2014 (edited) personally I would look for solution using .htaccess rewrites, there are many examples outside of prestashop here is one example you can try NOTE: THIS IS UNTESTED <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html </IfModule> It does not work. is there a plugin that can remove "/content" (not replace it by another word) and remove ".html" Edited January 2, 2014 by bostamaster (see edit history) 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