Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Multi site and incorrect redirection

$
0
0
Allright, thank you for explaining.

That is indeed possible, but will require some custom code
  1. Write a HttpModule that listens to all incoming requests
  2. Check if the request maps to a C1 page
  3. Check if the resolved page belongs to the site mapped to the hostname for the request
  4. If not, set the HttpStatusCode to 404 and end the request
I can post the code here tomorrow if you don't know how to get started on writing the required code, i suppose its about 30 lines.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>