Ok, I find myself having a lot of troubles with URL Rewriting and I've seen
on the net that in some situation indexers have difficulty indexing sites
because of some flaws in the url rewriting mecanism...
Does anybody have a solution to my problem? I mean, I want to be able to
localize my web site without having to dupplicate all the pages in 2-3 (fr,
en, sp(optional)) directories and so the indexers can index the right
content (in the right language) and people can bookmark the page in the
right language too. Is it something possible? I'd like to avoid dupplicating
pages because it could mean a pain in the you know what to maintain...
imagine a bug in one would have to be corrected in 3 places instead of
one...
Thanks
ThunderMusic
"ThunderMusic" <> wrote in message
news:...
> ok, thanks...
>
> I've made a http custom handler and in the ProcessRequest method, I insert
> the following line :
>
> context.RewritePath("/Default.aspx", false);
>
> Actually, I tried setting the boolean flag to true or false without any
> change in behavior but for now, no matter where I "redirect" (rewrite
> path) to, I get an empty page with only this content in the source :
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html;
> charset=windows-1252"></HEAD>
> <BODY></BODY></HTML>
>
> Does anyone have an idea why?
>
> Thanks for your help
>
> ThunderMusic
>
> "David" <> wrote in message
> news:...
>> Yes, you are correct. Use URL ReWriting. (search google for hundreds of
>> examples).
>>
>> You would enter a link like www.site.com/en/page.aspx and your url
>> rewrite would actually go to www.site.com/page.aspx?lang=en. Your
>> page.aspx would pick up the lang value and render the correct content.
>> The page in the address bar would continue to show
>> www.site.com/en/page.aspx (until you click a button or linkbutton, as
>> your form renders to the ?lang=en page.)
>> --
>> Best regards,
>> Dave Colliver.
>> http://www.AshfieldFOCUS.com
>> ~~
>> http://www.FOCUSPortals.com - Local franchises available
>>
>>
>> "Tony" <> wrote in message
>> news:f1q0r7$a0o$...
>>>> So I want it to stay
>>>> http://www.thedomainIregistered.com/en/thepage.aspx in the user URL
>>>> bar, but I want my server to know it's actually
>>>> http://www.thedomainIregistered/thepage.aspx with the culture set to
>>>> english. I can make the other way around really easily (take the one
>>>> without a language and redirect to the one with the language), but
>>>> that's not what
>>>
>>> You must use query strings (like www.mysite.com/mypage.aspx?lang=EN) and
>>> then EN is your variable in query string - you can get it with
>>> Request.QueryString["lang"]. After that you need to "rewrite url". I
>>> know that it is possible, but I can't understand how. So maybe other
>>> programmers from this newsgroup can explain how to use "URL Rewriting".
>>>
>>
>>
>
>