rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - omnsicient

Pages: 1
1
Programmers corner / Disable diff template inheritance
« on: August 16, 2012, 05:32:54 PM »
Can someone please tell me if it's possible to disable diff template inheritance.

Reason being:

On my root folder / - I have a diff template of "{.redirect|/~login.}" which means that the moment a user browses to the root it asks them to login - once they've logged in the user redirection takes over and redirects them to their user folder, but because /redirect/~login is inherited a loop is created...

e.g. John browses to "http://www.myhfs.com/"
because he's gone to the root folder it automatically redirects him to the login page, he enters his username & password, HFS sees that John's account is supposed to be redirect to "http://www.myhfs.com/john" after logging in.

The problem:
.redirect|/~login is inherited by all child folders - meaning an endless loop is created when HFS tries to redirect John to /John - because the diff template is inherited HFS immediately redirects John back to /~login - which of course redirects him back to /John and so on.

I don't want to restrict access to the root folder to force immediate login - because then the account redirection doesn't work.

Thanks for any help

Pages: 1