DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

LLMs.txt in multi portal setup

 9 Replies
 3 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

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?  

Advanced Member
Posts: 178
Advanced Member
2 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!

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

 

 

Growing Member
Posts: 85
Growing Member
Would it be better for the action to be a Rewrite so we do not rely on the AI crawler following 301/302 redirects?
Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

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

Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

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

?

Advanced Member
Posts: 233
Advanced Member
4 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
Tycho,
Mariette said she tried a few times to post it and I just tried it and I feel her pain :)
(the good news is we have an issue to work on posting of XML into the forums, which hopefully we can improve :) )
https://github.com/DNNCom...tyForums/issues/1385
Advanced Member
Posts: 178
Advanced Member
2 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!

test quick reply...sometime this does not work...I write something in quick reply...hit submit and it disappears in space :P

Advanced Member
Posts: 233
Advanced Member
4 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!

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




BTW you didn’t post this using quick reply, correct?

Sometimes when the replies disappear into the ether, I honestly think it’s a cloudflare issue vs forums or dnn. Were you posting anything unusual like xml or HTML?
Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

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.  🤔 

Advanced Member
Posts: 178
Advanced Member
2 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
I think the issue with disappearing posts is now fixed because we I changed configuration in CF but John and me are looking into this also. Pls, check the thread in the webmasters forum.

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:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved