Jump to content

htaccess / robots doubts


Recommended Posts

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.

:wacko:

Link to comment
Share on other sites

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

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.  :unsure:

 

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 by francesco25 (see edit history)
Link to comment
Share on other sites

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

×
×
  • Create New...