Forum
Welcome, Guest
Please Login to access forum.
htaccess and multi sites robots.txt (1 viewing) 
Go to bottom
TOPIC: htaccess and multi sites robots.txt
#4651
ACTIV’H.A
Fresh Boarder
Posts: 2
User Offline
htaccess and multi sites robots.txt Karma: 0  
Hello

We just bought JSiteMap Pro which seems a very nice component, congrats !

However we have a little set up problem. Our website uses several domains and subdomains with the same install and BDD, meaning that we only have one root.

We wanted to make several robots.txt files for each domains and added a rule to htaccess :
# Rewrite URL for robots.txt
RewriteRule ^robots\.txt$ robots/%{HTTP_HOST}.txt [L]

Then we created the folder robots with several files as domain1.txt and domain2.txt in the robots folder.

However it does not seem that JSiteMap Pro uses these files but only the one used in the root.

Is it possible to use JSiteMap pro with such a configuration where we would like to have different sitemap and different robots files for each of our two domains ? it seems that htaccess rules has no impact on JSiteMap pro reading and writing on robots.txt

Thanks for the help
Jean
 
Logged Logged  
  The administrator has disabled public write access.
Go to top