How to Create Multi-Store Robots.txt for OpenCart

  • 2015-08-15 18:55:40
  • Ekrem KAYA
  • E-Commerce
  • Tutorials
  • 0 comment(s)
  • 1832

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 (exclude http://www)

    Loading...
Last Update: 2015-12-05 05:44:06

Ekrem KAYA

1985 Gemlik doğumlu, müzik ve yemek ayrımı yapmayan, maviye hayran, sabrının sınırlarını zorlayan, beyninde yüz bin baloncuk gezen, yengeç burcu bir dünyalı.

Related Articles

Loading...

Write a Comment

Reply

Note: HTML is not translated!

  • 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
  • http://static.e-piksel.com/image/cache/catalog/articles/opencart/opencart-v2.0-available-now-500x350.jpg
  • 2015-08-15 18:55:40
  • 2015-12-05 05:44:06
  • 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 (exclude http://www)