Swickaar Posted October 26, 2012 Share Posted October 26, 2012 Hi, In previous version of prestashop it was easy to generate a .htaccess file from prestashop backend. Kindly let us know how to do the same in Ps 1.5.x Link to comment Share on other sites More sharing options...
Rhobur Posted October 26, 2012 Share Posted October 26, 2012 It seems it is automatically generated when you select the Canonical URL option. 3 Link to comment Share on other sites More sharing options...
Swickaar Posted October 26, 2012 Author Share Posted October 26, 2012 But the canonical URL is giving a lot of issues when active in prestashop 1.5.1 1 Link to comment Share on other sites More sharing options...
Rhobur Posted October 27, 2012 Share Posted October 27, 2012 (edited) No other option as I know. Try to set/unset those options and htaccess wil regenerate itself. Edited October 27, 2012 by Caprice (see edit history) Link to comment Share on other sites More sharing options...
jefgees Posted October 27, 2012 Share Posted October 27, 2012 Hoi try this: http://www.prestatraining.com/create-prestashop-htaccess-file/ it worked for me and many others. succes jef Link to comment Share on other sites More sharing options...
Swickaar Posted October 29, 2012 Author Share Posted October 29, 2012 The URL generated for CMS pages when friendly url is on takes the user to some category and not a cms page. Note that this is bothering us. Link to comment Share on other sites More sharing options...
glennlawre Posted November 30, 2012 Share Posted November 30, 2012 Enabling Friendly URL generates .htaccess "Preferences > SEO & URLs - Friendly URL - Set to Yes" I have just deleted my .htaccess, disabled and then enabled SEF URLs and it generated a .htaccess for me. Hope this helps... 1 Link to comment Share on other sites More sharing options...
vekia Posted November 30, 2012 Share Posted November 30, 2012 you can also turn on / turn off multstore feature. After that .htaccess file will be re-generated other methods of regenerating htacess file 4 Link to comment Share on other sites More sharing options...
glennlawre Posted November 30, 2012 Share Posted November 30, 2012 (edited) Thanks for that info vekia, Could you maybe advise on this post - mulitstore config If you know a bit about multistore??? Edited November 30, 2012 by glennlawre (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted January 1, 2013 Share Posted January 1, 2013 We wrote our own solution. http://www.prestashop.com/forums/topic/213570-module-prestashop-15-customize-htaccess/page__pid__1053674#entry1053674 Link to comment Share on other sites More sharing options...
Raphaël Malié Posted January 2, 2013 Share Posted January 2, 2013 The reason is that you don't need to generate a .htaccess manually with the 1.5 version. The .htaccess file is automatically created / updated when you use friendly urls or multistore, and will save all the specific code that you put in your file. Link to comment Share on other sites More sharing options...
Pman 77 Posted February 7, 2013 Share Posted February 7, 2013 The reason is that you don't need to generate a .htaccess manually with the 1.5 version. The .htaccess file is automatically created / updated when you use friendly urls or multistore, and will save all the specific code that you put in your file. Hi Guys, I have tried a couple of things you have suggested but i am not seeing the .htaccess file on my server. Does that mean it has not worked correctly? Would this have an affect on why i cannot now create new users on my store? Regards Link to comment Share on other sites More sharing options...
El Patron Posted February 7, 2013 Share Posted February 7, 2013 Hi Guys, I have tried a couple of things you have suggested but i am not seeing the .htaccess file on my server. Does that mean it has not worked correctly? Would this have an affect on why i cannot now create new users on my store? Regards when you look at it from ftp, make sure your ftp program settings are set to 'show hidden files' Link to comment Share on other sites More sharing options...
Pman 77 Posted February 7, 2013 Share Posted February 7, 2013 when you look at it from ftp, make sure your ftp program settings are set to 'show hidden files' Hi! I just ticked the last few boxes in Dreamweaver to see them but it made no difference. I can see then in DW on my local files but not on the server Link to comment Share on other sites More sharing options...
Neapix Posted April 1, 2013 Share Posted April 1, 2013 We wrote our own solution. http://www.prestasho...74#entry1053674 well this solution was at version 1.4 terrible mistake to take it off!!!! =[ 1 Link to comment Share on other sites More sharing options...
El Patron Posted April 13, 2013 Share Posted April 13, 2013 well this solution was at version 1.4 terrible mistake to take it off!!!! =[ I wrote a module that improves upon the 1.4 native feature. Where in 1.4 you could only add to the top of the native .htaccess, my module allows you to prefix and suffix the native PrestaShop. And for those that want to regenerate their native PS .htaccess, on-demand (yes we know you are out there) we have that button does that as well. Module forum post: http://www.prestashop.com/forums/topic/213570-module-prestashop-15-customize-htaccess/ Module Home: http://www.etiendas.co/en/42-prestashop-15-customize-htaccess.html 1 Link to comment Share on other sites More sharing options...
ilan316 Posted June 1, 2013 Share Posted June 1, 2013 How can i redirect - "myadmin.com/he/" to "myadmin.com" ? Link to comment Share on other sites More sharing options...
GoneVintage Posted June 12, 2013 Share Posted June 12, 2013 you can also turn on / turn off multstore feature. After that .htaccess file will be re-generated other methods of regenerating htacess file Hi, I need some help redirecting my old site to the new one keeping the category and product structure of the links. Should I create a new thread or wait for your answer here? Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 what you exactly expect? you said that you want to redirect OLD site to NEW, so.. you changed domain or sth? please explain Link to comment Share on other sites More sharing options...
GoneVintage Posted June 12, 2013 Share Posted June 12, 2013 what you exactly expect? you said that you want to redirect OLD site to NEW, so.. you changed domain or sth? please explain Yes, I want to redirect my old domain to the new one keeping the same category and products structure. Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 in old domain use 301 redirection in .htaccess 301 redirects to new domain (and this is good for seo) like: domain.com/1-product.html new.com/1-product.html in this case you have to copy database to new shop. Link to comment Share on other sites More sharing options...
GoneVintage Posted June 12, 2013 Share Posted June 12, 2013 in old domain use 301 redirection in .htaccess 301 redirects to new domain (and this is good for seo) like: domain.com/1-product.html new.com/1-product.html in this case you have to copy database to new shop. You mean I have to create separate redirects for all my products separately? Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 if you use the same structure for categories, products etc. you can use this redirection: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] with this .htaccess rule you don't have to redirect urls one by one 1 Link to comment Share on other sites More sharing options...
ilan316 Posted June 12, 2013 Share Posted June 12, 2013 can any one help me How can i redirect - "myadmin.com/he/" to "myadmin.com" ? Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 you use only one language on your shop, or maybe more? Link to comment Share on other sites More sharing options...
ilan316 Posted June 12, 2013 Share Posted June 12, 2013 I'm using 1 language on my shop (hebrew) but in back office im using only english languge . Link to comment Share on other sites More sharing options...
GoneVintage Posted June 12, 2013 Share Posted June 12, 2013 (edited) if you use the same structure for categories, products etc. you can use this redirection: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] with this .htaccess rule you don't have to redirect urls one by one There is some error in my htaccess file now - the old site stopped working ... only the main page displays, all other result in 404 p.s. not all the categories all the same, but all categories and products from the old site are identical to the ones on the new one... Edited June 12, 2013 by FountainPenMarket (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 even if you remove old content? Link to comment Share on other sites More sharing options...
GoneVintage Posted June 12, 2013 Share Posted June 12, 2013 (edited) What do you mean "old content"? Do I need to erase all the contents in my htaccess file and replace it with what you suggested? Just noticed the word "database" in your first answer ... Since the second domain uses the first domain's database ... I'm not sure what to think Edited June 12, 2013 by FountainPenMarket (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 you want to move your store: domain.com -> new-domain.com 1) without database change 2) without hosting change if so - you need to change ps_shop_url table (preferences > SEO & URLs) values: domain & URI. then, create new directory (not in prestashop dir) and point your old domain there. in this dir create .htaccess file with 301 redirection. Link to comment Share on other sites More sharing options...
GoneVintage Posted June 12, 2013 Share Posted June 12, 2013 Both domains are part of a Prestashop Multistore. They both share the same database. I decided to merge them into one store and enabled all categories from first one to the other. Now I'm afraid from duplicate content penalty and still want to receive traffic white the imported categories and products from the first domain get indexed. I've read about the option you suggested ( Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] ) , but unfortunately I can't get it work. There is probably some redirect from the multistore preventing this to work properly. Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 unfortunately, with multistore this trick will not work Link to comment Share on other sites More sharing options...
GoneVintage Posted June 12, 2013 Share Posted June 12, 2013 unfortunately, with multistore this trick will not work Luckily This Trick WORKS like a Charm! Thank you! Besides adding the rewrite mod to .htaccess you just need to create 301 redirect on CPanel in order the mod to work .... It's that easy(when you spend a day searching and trying ... ) Thanks again! Supports Multistore too. Link to comment Share on other sites More sharing options...
ilan316 Posted June 13, 2013 Share Posted June 13, 2013 Is any of the methods aboved will fix my problem? Link to comment Share on other sites More sharing options...
vekia Posted June 13, 2013 Share Posted June 13, 2013 but after another htaccess regeneration, you have to add this code once again, am i right? it's painfull! Link to comment Share on other sites More sharing options...
spexistechnology Posted July 17, 2013 Share Posted July 17, 2013 Enabling Friendly URL generates .htaccess "Preferences > SEO & URLs - Friendly URL - Set to Yes" I have just deleted my .htaccess, disabled and then enabled SEF URLs and it generated a .htaccess for me. Hope this helps... Thanks for this information. You are a life saver :-) Link to comment Share on other sites More sharing options...
belumy Posted October 12, 2013 Share Posted October 12, 2013 can any one help me How can i redirect - "myadmin.com/he/" to "myadmin.com" ? HI, You visit this topic. http://www.prestashop.com/forums/topic/251581-aporte-redireccion-pagina-no-encuentra-error-404-al-quitar-desinstalar-un-idioma/ is for 1.4.x, in the las topics you have for 1.5.x rediret for example: http://ropika.es/en/index.php to http://ropika.es/index.php I hope is solution to you Regards. Link to comment Share on other sites More sharing options...
jeyjoo Posted October 24, 2013 Share Posted October 24, 2013 There is a further issue here - how do stop your own customisations to htaccess being overwritten when you make changes to the backend? Link to comment Share on other sites More sharing options...
El Patron Posted October 24, 2013 Share Posted October 24, 2013 There is a further issue here - how do stop your own customisations to htaccess being overwritten when you make changes to the backend? this will help answer your question http://www.prestashop.com/forums/topic/2131[spam-filter]tip-15-and-custom-htaccess/ Link to comment Share on other sites More sharing options...
Recommended Posts