Quick Nav:  Online Store   |   Login | Register

SiteUrls.config question

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Ulrik Motzfeldt
<20 Posts
Posts:10


07/11/2008 5:20 PM  

"Question:
I am looking for a solution for my multilanguage problem. I use Locopon's DSLocalizator in my ML site. But I don not like the URL (/language/en-US/Default.aspx). I want to remove "/language/en-US" and replace it with "Enligsh". The same procedure I want for the other langaige strings. Can this be done with your module ? Do you have a tutorial how this can be done with your module ?
Answer:
You can do that without another module by just using the SiteUrls.config file. If you want to ask this in my DotNetNuke support forum I will be lad to explain how.
"

Hi again

Well I would be very happy if you could explain me, how this could be done.

Greetings from Sisimiut, Greenland.

John Mitchell
Posts:3471


07/12/2008 10:47 AM  

To do this, you can create a rule in the SiteUrls.config file like this:

<RewriterRule><LookFor>(.*?)/english/(.*)</LookFor><SendTo>$1/language/en-US/$2</SendTo></RewriterRule>
I haven't tested it, but it should work. You can also turn off the language in the url completely and just use the cookie if you want. To do that, go to Admin > Languages and uncheck the box for "Enable Language detection in Urls".
Ulrik Motzfeldt
<20 Posts
Posts:10


07/12/2008 8:27 PM  
Hi
Thanks for your answer. But it do not work for me. Have inserted the code in my siteurls.config - and checked out the detection.
have even restarted the IIS.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > SiteUrls.config question



ActiveForums 3.7
Powered by: Snapsis Software