[thelist] Separate landing pages -- and custom "home" links.

Lee Kowalkowski lee.kowalkowski at googlemail.com
Fri Nov 5 15:06:01 CDT 2010

On 5 November 2010 17:51, Bill Moseley <moseley at hank.org> wrote:
> Say I have a site targeted at different types of users -- perhaps a school
> site for students, teachers, and administrators.
> There's a generic index.html home page.  Now, we want to send out email to
> the three types of users, linking them to a targeted home page:
> student.html, teacher.html, and admin.html.  Those pages will act as the
> site's home page for each type of user.
> All the other pages are the same -- all three user types will see the same
> /about.html, for example.
> All the pages on the site have a "home" link.  What we want is if someones
> starts on student.html then the "home" link will take them to back to
> student.html, not the generic index.html page.
> A few options I can think of:
> 1) set a cookie to remember the user type (set when visiting student.html,
> admin.html, teacher.html) and then:
>   a) rewrite every "home" link when rendering the page to point to their
> custom home page, or
>   b) do a redirect to their custom home page if /home.html is requested and
> a cookie is set.
> 2) Use a URL prefix like /student/index.hml and a rewrite rule so that
> /student/about.html, /teacher/about.html, and just /about.html all point to
> the same page.
> 3) Use a query parameter, but would have to make sure all links on every
> page included the query parameter.

4) If possible, you might find subdomaining to student.example.com
teacher.example.com admin.example.com to be a viable option.  Your
home links can all be the same relative URI then.


More information about the thelist mailing list