Page 1 of 1
robots.txt not found???
Posted: Wed Feb 01, 2012 7:18 pm
by julugu
Hi,
I have tried to acces to robots.txt at my site but it says "Not found". I have given 644 to the file. Any ideas? Is there any configuration file that I must change?
Thanks.
Re: robots.txt not found???
Posted: Wed Feb 01, 2012 7:42 pm
by i2Paq
A link to your site would help...
Re: robots.txt not found???
Posted: Wed Feb 01, 2012 10:08 pm
by julugu
Re: robots.txt not found???
Posted: Thu Feb 02, 2012 1:48 am
by i2Paq
Maybe it is blocked by your .htacces?
Re: robots.txt not found???
Posted: Thu Feb 02, 2012 2:49 am
by julugu
Ooops! Where is the .htacces file? I don't see it.
Re: robots.txt not found???
Posted: Thu Feb 02, 2012 4:36 pm
by MarketInSG
julugu wrote:Hi,
I have tried to acces to robots.txt at my site but it says "Not found". I have given 644 to the file. Any ideas? Is there any configuration file that I must change?
Thanks.
You sure you even added a robots.txt file? OpenCart doesn't add it for you if I didn't remember wrongly.
Re: robots.txt not found???
Posted: Sat Feb 04, 2012 7:30 pm
by julugu
Yes, I have uploaded it. Now I see that I can't access to any .txt file, but other yes. It's strange.
Re: robots.txt not found???
Posted: Sat Feb 04, 2012 10:02 pm
by victorj
check your .htaccess file.
not all ftp programs do show it as default.
check the documentation of your ftp program how to show hidden files.
or use the filemanager in your cpanel or direct admin.
open .htaccess and check for
<FilesMatch "\.(tpl|ini|log|txt)">
Order deny,allow
Deny from all
</FilesMatch>
if there is a txt entry than access to txt files is prohibbeted.
remove.txt from the .htaccess and save.
now you can access robots.txt
Re: robots.txt not found???
Posted: Fri Jun 17, 2022 1:47 am
by bogmar88
Hello,
I have the same problem,
in .htaccess is this line <FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
What exactly need to delete ?
Thank you!