Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
hi,
i am struggeling with an url rewrite in umbraco 4.5.
I need to show a different template for a domain (in this case a mobile version).
So if somebody is using:
http://m.domain.com/http://m.domain.com/page1 ; http://m.domain.com/page1/subpage1 etc. etc.
the site should show the same page, but with another template (called mobilemaster).
I cannot get this to work. I appreciate some help with this. I tried this, but it is not even catching the virtual url
<add name="mobilerewrite" virtualUrl="(http://|)m.domain.com/(.*)" redirect="Application" rewriteUrlParameter="IncludeQueryStringForRewrite" destinationUrl="~/$1/mobilemaster" ignoreCase="true"/>
thanks
Hi Mike,
Could you show your structure please? Why do you use destinationUrl="~/$1/mobilemaster" ?
Thanks, Alex
Hi,
not sure, I thougt the $1 would insert the original url request and just add a mobile template using mobilemaster
so
http://m.domain.com/http://m.domain.com/page1 ;http://m.domain.com/page1/subpage1
the default url is:
http://www.domain.com/http://www.domain.com/page1 ;http://www.domain.com/page1/subpage1
what i try to accomplish is if somebody uses
http://m.domain.com/page1 ;
it effectively returns
http://www.domain.com/page1/mobilemaster (thus, the orignal site with an alttemplate)
Can somebody shed a light on this?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Need help in UrlRewriting
hi,
i am struggeling with an url rewrite in umbraco 4.5.
I need to show a different template for a domain (in this case a mobile version).
So if somebody is using:
the site should show the same page, but with another template (called mobilemaster).
I cannot get this to work. I appreciate some help with this. I tried this, but it is not even catching the virtual url
thanks
Hi Mike,
Could you show your structure please? Why do you use destinationUrl="~/$1/mobilemaster" ?
Thanks, Alex
Hi,
not sure, I thougt the $1 would insert the original url request and just add a mobile template using mobilemaster
so
the default url is:
what i try to accomplish is if somebody uses
http://m.domain.com/page1 ;
it effectively returns
http://www.domain.com/page1/mobilemaster (thus, the orignal site with an alttemplate)
thanks
Can somebody shed a light on this?
is working on a reply...