Are they bound to different web-sites with the same path, or the same
web-site? Theres a difference.

Either way I'm out of ideas. I don't really know a scenario why a
routing-rule would be bypassed, maybe someone else can explain what
could be the cause of that.

eyal wrote:
> Hi Jimmy,
>
> the domains point to the same IP and bound to the same folder dir of
> the site. they all work except when I use the category links mentioned
> previously. Also I tried using a non routed url which worked fine for
> all domains.
>
> Any idea what else could be the problem
>
> Thanks
>
> Eyal
>
> On Apr 20, 8:36 am, Jimmy Shimizu <[email protected]> wrote:
>   
>> 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