Forum OpenACS Q&A: ForceHostP

Request notifications

Posted by Lars Pind on
In ACS 3.x there was a request-processor feature, ForceHostP, that
would make the request-processor always redirect folks to some URL
that you wanted, say,, if they came requesting some
other URL, such as without the www., or, for example.

I kind of liked that, being able to access your site using whatever
URL they want, but always redirecting them to the canonical URL.

So I implemented this, and uploaded a patch to the SDM.

If there's enough interest, I can perhaps clean it up a bit,
parameterize it, test to see that it works with hostmap, which I'm
not sure it does at the moment.

The patch is here:


2: Response to ForceHostP (response to 1)
Posted by Neophytos Demetriou on
Lars, IIRC, someone posted a patch about this already (or was it a bboard post -- I'm not sure but I think it was Jeff Davis).I know because I'm running it on my experiments OpenACS installation. Just a heads up in case you want to check that out as well.
3: Response to ForceHostP (response to 1)
Posted by Dave Bauer on

This is already a parameter. There was a patch to make it actually work a while back.

I wonder if this every made it in.

4: Response to ForceHostP (response to 1)
Posted by Lars Pind on
Didn't know about this patch. It didn't make it in yet.