That shouldn't be a problem if you bind both hosts to the same website
in IIS. Atleast it works for me using two different hosts defined in my
hosts-file.

Are you sure both domains points to the same IP, aswell as both domains
are bound to the same website?

Do a "non-routed" url work? eg:

http://secondarydomain.com/specials/searchresult.rails?categoryId=1

(if .rails is your extension)


eyal wrote:
> Hi All,
>
> I am using url routing in my web site. I also have multiple domain
> names that link to the same root folder.
>
> The main domain works fine with all the routed urls. However the
> secondary domains generate page not found.
>
> here is an example:
>
> Routing Rules class
> rules.Add(new PatternRoute("/<controller>/<categoryName>/
> <categoryId>/")
> ....
>
>
> Category Links (in View)
> #foreach($Category in $Categories)
>       <li>$Url.Link($Category.Name, "%{controller='specials',
> action='searchresult', params={categoryId=$Category.Id, categoryName=
> $Category.Name}")</li>
> #end
>
>
> Source of problem:
> http://maindomain.com/specials/category1/1         <-works great
>
> http://secondarydomain.com/specials/category1/1  <-page not found
> error
>
> Does anyone know why this is happening and how to resolve this?
>
> Thanks
>
> Eyal
>
> >
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to