If you have not created your robots.txt file for opencart to article here.
If you are using the Apache Server, open your .htaccess file and make the following changes.
FIND
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
REPLACE
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\/%{HTTP_HOST}.txt))">
FIND
RewriteCond %{REQUEST_FILENAME} !-f
ADD BEFORE
RewriteRule ^robots\.txt$ robots/%{HTTP_HOST}.txt [L]
After these changes, create robots directory in root directory. Create domain name txt in robots directory. Example: yourdomain.com.txt or www.yourdomain.com.txt (exclude http://)
Last Update: 2017-06-14 10:38:00
Related Articles
Loading...
- How to Create Multi-Store Robots.txt for OpenCart
- How to Create Multi-Store Robots.txt for OpenCart
- OpenCart Robots, OpenCart Robots SEO, OpenCart Robots URL, OpenCart robots.txt,Multi-Store Robots.txt,Multi-Store Robots
- https://weblenti.com/static/image/cache/catalog/articles/opencart/opencart-v2.0-available-now-500x350.jpg
- 2015-08-15 18:55:40
- 2015-08-15 18:55:40
- 2017-06-14 10:38:00
- E-Commerce
- Tutorials
If you have not created your robots.txt file for opencart to article here.
If you are using the Apache Server, open your .htaccess file and make the following changes.
FIND
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
REPLACE
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\/%{HTTP_HOST}.txt))">
FIND
RewriteCond %{REQUEST_FILENAME} !-f
ADD BEFORE
RewriteRule ^robots\.txt$ robots/%{HTTP_HOST}.txt [L]
After these changes, create robots directory in root directory. Create domain name txt in robots directory. Example: yourdomain.com.txt or www.yourdomain.com.txt (exclude http://)