Products » Support Forums 

Support Forums

HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterMore Login IssuesMore Login Issues
Previous
 
Next
New Post
6/7/2009 1:41 AM
 

I have the following implemented for a login solution on our website before FriendlyURL/URL Master are setup:

No Login link on any webpage (removed from skins).  Instead www.dmcinfo.com/login will take you to the login page.

This was done by adding a folder /Login that just does:

      Response.Redirect("~/Default.aspx?tabid=38&ctl=Login");

 

Then also added rewriter rule to SiteUrls.config

      <RewriterRule>

         <LookFor>.*/Login/Default.aspx</LookFor>

         <SendTo>~/Default.aspx?TabId=38&amp;ctl=Login</SendTo>

      </RewriterRule>

 

This is not working anymore.  I thought I was close to having it work by adding:

IgnoreRegex: \login|(?linkclick.... etc....

doNotRedirectRegex: login|/LinkClick.... etc....

The first (IgnoreRegex) change is to allow the base solution to do it's redirect of www.dmcinfo.com\login to

/Default.aspx?tabid=38&ctl=Login

which seems to work according to Firefox's LiveHTTP headers add in.

The second (doNotRedirectRegex) change is to allow the java script to work without returnning a 404 or 301

These seem to do the trick, but then I redirected to an Object reference not set to an instance of an object error.  I am able to login temporarily if I need to by swapping out the webconfig file (thank God for SVN).

 

What am I doing wrong?  For your reference, my site is www.dmcinfo.com *AND* I have removed the above changes to Regex filters for now.

 

 
New Post
6/7/2009 6:54 PM
 

I decided to go a different route.  I removed the previous custom login solution and created a new one - a page under root called login, so now we can login using /login.aspx.  Unfortunately making /login work without the extension is a much more difficult task based on some of the other posts I've seen on the forum.

 
New Post
6/8/2009 6:32 AM
 

Hi

Just to let you know, /login.aspx is a built-in Url put there by the Url Master module.  It already rewrites back to default.aspx?tabid=xx&ctl=login.  So you don't need to add a login page to get the url working, nor do you need to add to the siteurls.config file.

If you want to have a /login page with no file extension, you're going to need to configure IIS to use wildcard extensions mapping as your site is on IIS6.   If you enable the wildcard extensions mapping, then /login will automatically start working as a rewritten Url. 

The next version of the Url Master module (1.14) is very close to being released, and contains an enhancement to automatically generate the /login , /register, /terms and /privacy links.  However, to get the no-extension Urls, you'll have to enable the 'no page extensions' option (across the whole site), and you'll have to enable wildcard extensions as already mentioned.

-Bruce

 
New Post
12/23/2009 5:54 AM
 

I have Url Master 1.14 and I have kept the Friendly Url Settings basically out-of-box.  I have not changed any of the Advanced Regex Filters and I do not have a custom login page.  When I applied the changes an error appeared instead of the login page.

what am I missing?  does the version 1.14 handle the default  /login etc?  (I have not enabled the 'no page extensions')

thanks. kball

 
New Post
12/23/2009 9:01 AM
 

If you're trying to use /login - you'll need to enable the wildcard extensions in IIS - have you done this step?  The /login url should work OK without any changes.

I would also recommend upgrading to the latest version (you can downlad the latest version and install it from the products page)

 

 
Previous
 
Next
HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterMore Login IssuesMore Login Issues


Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.

Please note : If you are posting a new thread for the Url Master module, please include the following information where applicable:

- Url Master version

- DotNetNuke version

- Example Url where possible

- If there is an error, please post the full error text and/or stack trace (from the DotNetNuke event log).