I have created a simple Document Type for text files in order to create a robots.txt. This works very well. However, my node named robots.txt renders as /robotstxt (without the dot) in the URL, hence it is useless to crawlers.
I wonder if there is a simple way to render the URL as robots.txt (with the dot) ?
change robotstxt to robots.txt
I have created a simple Document Type for text files in order to create a robots.txt. This works very well. However, my node named robots.txt renders as /robotstxt (without the dot) in the URL, hence it is useless to crawlers. I wonder if there is a simple way to render the URL as robots.txt (with the dot) ?
All the best
Someone mentioned ~\Config\UrlRewriting.config but no such file seems to exist in my local clone.
Hi Jesper.
If no such file exsist then i guess you are using Umbraco version +7.6?
Then you use the web.config rewrite rules.
Best option would be to use URL Rewrite module in IIS. That rule would look like:
Regards, Magnus
is working on a reply...