Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
If no such file exsist then i guess you are using Umbraco version +7.6?
Then you use the web.config rewrite rules.
If you wish to use IIS rewrite rules, see the documentation here:
Best option would be to use URL Rewrite module in IIS. That rule would look like:
<rule name="Robots" patternSyntax="Wildcard" stopProcessing="true">
<match url="robots.txt" />
<action type="Rewrite" url="/robotstxt" appendQueryString="false" />
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted