francesco25 Posted April 30, 2014 Share Posted April 30, 2014 Hi, I am getting a lot of 404 soft error on my website as GWT is reporting to me. In response to all these 404 I created manually one .htaccess file with all the redirect 301 fix . This .htaccess is locate in http://www.mysite.com Then if I go to BO and I try to generate an .htaccess this file goes to: http://www.mysite.com/shop/ where prestashop is installed. The same thing happens with robots.txt. I have one in the site root and one in the shop root. My doubt is that something in my configuration is wrong. Do I have to keep these files in the mysite.com or in the root of the shop mysite.com/shop/ I hope you guys can help me out. Link to comment Share on other sites More sharing options...
El Patron Posted April 30, 2014 Share Posted April 30, 2014 only update PrestaShop files in it's shop root including the .htaccess and robots... please also review my .htaccess module... http://www.prestashop.com/forums/topic/213570-module-prestashop-back-office-customize-apache-htaccess/ Link to comment Share on other sites More sharing options...
francesco25 Posted May 1, 2014 Author Share Posted May 1, 2014 only update PrestaShop files in it's shop root including the .htaccess and robots... please also review my .htaccess module... http://www.prestashop.com/forums/topic/213570-module-prestashop-back-office-customize-apache-htaccess/ and what about the htacces / robots that actually are in the site root? Do I have to overwrite them or merge? This is the situation: site root (mysite.com): 1 htaccess written manually 1 robots written manually shop root (mysite.com/shop) 1 htaccess generated by prestash 1 robots generated by prestash Files in site root are different that files in shop root. Link to comment Share on other sites More sharing options...
francesco25 Posted May 2, 2014 Author Share Posted May 2, 2014 help Link to comment Share on other sites More sharing options...
francesco25 Posted May 5, 2014 Author Share Posted May 5, 2014 I still have my website with 2 .htaccess what do i have to do? Link to comment Share on other sites More sharing options...
francesco25 Posted May 7, 2014 Author Share Posted May 7, 2014 Link to comment Share on other sites More sharing options...
El Patron Posted May 7, 2014 Share Posted May 7, 2014 Please if you are not getting further attention to your question. Post more information. I do not exactly understand that you have issue or not, manually updated .htaccess in shop folder. Do you have issue if you remove your custom .htaccess changes for shop? Link to comment Share on other sites More sharing options...
francesco25 Posted May 7, 2014 Author Share Posted May 7, 2014 (edited) I did not try yet to remove the custom .htaccess 'cause if this is not the right solution to the problem there will be an exploit of 404 errori in my google webmaster tool and then there could be a penalization in seo serps. the main question is: which is the right position of a .htaccess file if prestashop is installed in a subdirectory of the domain? es: www.mysite.com/shop is it www.mysite.com/shop/.htaccess? (root shop) or maybe www.mysite.com/.htaccess? (root domain) when I know the answer I will be able to do some test in different directories with differents htaccess files and see if it fixes some 404 issue. Edited May 7, 2014 by francesco25 (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted May 7, 2014 Share Posted May 7, 2014 the server will look for .htaccess of the directory it is working in. for example when it root, it would use the root of your files to check for .htaccess. this is where you native prestashop .htaccess goes. another example is if it in another directory of your shop files, modules for example, it will look in that directory for .htaccess Personally these are better topics in non-prestashop forum where there is more expertise and focus on .htaccess Link to comment Share on other sites More sharing options...
Recommended Posts