My Account
|
Register
|
Login
SEARCH
Search
Powered by
Search Boost
Home
DNN Modules
Forums
Contact
Share
Forums
Instructions
In order to be able to create threads and posts you need to
register
first.
1
2
3
4
5
Home
Products
Redirect Toolki...
Redirect based on username
Previous
Next
12/18/2011 7:14 PM
jcbarrreau
Joined: 10/11/2010
Posts: 1
Redirect based on username
Hi,
Here what I am tryng to d, for a referral website.
Let's say I create a profil property like webref.
Each user has something in webref, like for exemple "johndoe".
The user can give the adress www.thewebsite.com/johnDoe to his customers.
When arriving on the website, if in the Url johnDoe is identified, the visitor is on a generic website, but he can see some specific information about JohnDoe, for exemple his phone number, image...
I guess I can do the second part with MyToken module. But what module do I have to use in order to do the first part (identifying the request by just inserting on the URL www.thewebsite.com/johndoe).
Thanks for your help.
JC
12/19/2011 12:46 AM
Bogdan Litescu
Joined: 2/8/2009
Posts: 926
Re: Redirect based on username
Hello,
If you go with URLs like www.thewebsite.com/Page.aspx?ref=johndoe then the task becomes simpler. You can use redirect toolkit to build rules against the "ref" parameter from URL.
You can make the rule Global so it executes for all requests to aspx pages.
The problem with URLs like www.thewebsite.com/johndoe is you have to URL rewrite them first so they map to an aspx page. After that the Redirect Toolkit can run as shown abobe.
The rewrite rules would look like ^(\w+)$ (this means only word characters). Rewrite to /Page.aspx?ref=$1
There are several URL rewritters for DNN.
Hope this helps,
Bogdan
Like Us on Facebook
for real time feature updates.
Page 1 of 1
Previous
Next
Home
Products
Redirect Toolki...
Redirect based on username
See our DotNetNuke modules...
Copyright ©2008-2011 DNN Sharp (by Avatar Software)