So you want both a redirect and a rewrite? You will probably need more than one rule to do this, but first thing you need to do is make the rewrite that lets you display the login page on the url you want:
And then you can set up a number of rules like the last one, to redirect the user from other urls the the loginpage you want.
By the way, did you know that you can ask umbraco to use the directory type url's on you entire site? You can do that by going to the web.config and setting this value to true:
How to show vanity URL using the Umbraco UrlRewritingNet.UrlRewriter.dll
Does anyone know how to define a virtual URL using the Umbraco UrlRewritingNet.UrlRewriter.dll ?
Currently if I use a rule to from target http://MyDir/A.aspx to http://MyDir/B.aspx it will show B.aspx URL at the address line,
But I like it to show something like http://MyDir/MyPage
For example, this is what I'm using now for login:
<
add name="SSL_SignIn"
virtualUrl=http://(.*)/Membership/Login.aspx
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl=https://$1/Membership/Login.aspx
ignoreCase="true"
redirect="Domain"
redirectMode="Permanent"
/>
But I like it to show https://Membership/Login
Any ideas ?
So you want both a redirect and a rewrite? You will probably need more than one rule to do this, but first thing you need to do is make the rewrite that lets you display the login page on the url you want:
Then, to actually get people redirected to that url, use something like what you already have:
And then you can set up a number of rules like the last one, to redirect the user from other urls the the loginpage you want.
By the way, did you know that you can ask umbraco to use the directory type url's on you entire site? You can do that by going to the web.config and setting this value to true:
And if you use the web config key, then you would not need the first "loginRewrite" rule.
I just need a vanity URL to be redirected to my index page. How would I do that? I am new to Umbraco. Thanks!
example : www.mydomain/vanity
is working on a reply...