0 users online. Create an account or sign in to join them.Users

Search

Anyone who can tell me how to modify the .htaccess so robots.txt can be enabled? Thanks

There is no need to modify your .htaccess. Simply put in your robots.txt and everything should be fine as the mod_rewrite rules will respect existing files.

What do you mean with 'enabled': can't you access the file?

It seems to work fine with my default .htaccess Just add a robots.txt file to the root of your site, no?

edit: yeah, what Nils said ;)

Nils, David, thanks for the fast reply, i have a slightly modified .htaccess for my language parameter (no region). http://www.hotelbooking.st/ http://www.hotelbooking.st/robots.txt

Please find my htaccess attached. Thanks

Attachments:
htaccess.txt

Hmm, maybe the simplest solution would be to duplicate the ### DO NOT APPLY RULES WHEN REQUESTING "favicon.ico" rules for .robots.txt?

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details