Hi all
SEO has been part of our game for a long time, now GEO. So, optimization for generative AI like Chatgpt, Deepseek, Gemini etc. For this, one needs to upload a LLMs.txt in the root folder. In a regular setup not a problem but in e multi portal setup: how do you do this?
Something like this in IIS should do it:
<code><configuration> <system.webserver> <rewrite> <rewritemaps> <rewritemap name="PortalMap"> <add key="domain1.com" value="1"> <add key="domain2.com" value="2"> </add></add></rewritemap> </rewritemaps> <rules> <rule name="Redirect LLMs.txt based on hostname" stopprocessing="true"> <match url="^LLMs\.txt$"> <conditions> <add input="{PortalMap:{HTTP_HOST}}" pattern="(.+)"> </add></conditions> <action redirecttype="Permanent" type="Redirect" url="https://{HTTP_HOST}/portals/{C:1}/LLMs.txt"> </action></match></rule> </rules> </rewrite> </system.webserver> </configuration></code>
This is very usefull if you have many portals. Just use the PortalMap and add the hostnames for the diffent portals and redirect accordingly
I would've suggested something similar to what Mariette did... It also parallels the way multiportal Robots.txt files work.
Blog: Multi-Site DNN Instances and Robots.txt
Mariette Would you be so kind to copy paste the code? (Daretoask :-) the value of domain1.com would be the portal ID? for instance dnncommunity.org value=1, dnnsoftware.com value=2
?
test quick reply...sometime this does not work...I write something in quick reply...hit submit and it disappears in space :P
Posted By Mariette Knap (SU) on 8/14/2025 3:09 AM test quick reply...sometime this does not work...I write something in quick reply...hit submit and it disappears in space
test quick reply...sometime this does not work...I write something in quick reply...hit submit and it disappears in space
When I've seen my replies disappear, it's been because CloudFlare needed to do another check before it allows a post. Then, I go back in browser history. The posted message is usually there (but I usually copy it beforehand anyway). From there, I can post again. I'm not sure which setting was enabled for this behavior and how to adjust it. 🤔
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.