I have 3 domains pointed to my umbraco website (each setup as hostnames on separate websites within Umbraco), but I'm trying to force umbraco to log in on a specific domain, regardless of which domain the visitor browses to.
one possibility is that if you have tried a couple of different redirects your browser is still caching the first one (e.g. if you missed out the /umbraco the first time you tested it.) The first thing I would change is the redirectMode from "permanent" to "temporary" while you are working on this problem.
Your browser is still likely caching the permanent redirect though. Try it again in Incognito mode on your browser. This is a very handy mode for testing anything like this.
i.e. It's possible what you have set up now is correct but caching is stuffing you up
UrlRewriting to a subdirectory
I have 3 domains pointed to my umbraco website (each setup as hostnames on separate websites within Umbraco), but I'm trying to force umbraco to log in on a specific domain, regardless of which domain the visitor browses to.
This is my code:
But it does the same thing.
Any idea what i'm doing wrong?
one possibility is that if you have tried a couple of different redirects your browser is still caching the first one (e.g. if you missed out the /umbraco the first time you tested it.) The first thing I would change is the redirectMode from "permanent" to "temporary" while you are working on this problem.
Your browser is still likely caching the permanent redirect though. Try it again in Incognito mode on your browser. This is a very handy mode for testing anything like this.
i.e. It's possible what you have set up now is correct but caching is stuffing you up
Ah yes, very good advice, thanks Paul. It was in fact a caching issue. :)
is working on a reply...