WebSite X5Help Center

 
Bjorn Andreassen
Bjorn Andreassen
User

Lock Main Homepage  en

Autore: Bjorn Andreassen
Visite 1275, Followers 1, Condiviso 0  

I want to lock all pages on my site, but the home page can't be locked like all the other pages. How do I solve this?

Everyone entering the site must register with their own username and password to gain access.

Postato il
7 RISPOSTE - 2 UTILI
John S.
John S.
User

Hello Bjorn

You could have a login made via .htaccess

If you specify login information in the .htaccess file, then noone can enter the site without logging in as specified

Leggi di più
Postato il da John S.
John S.
John S.
User

You can then still use the restricted pages if you want some pages only to be visited by certain groups or persons.

You will then have a 2 level security :

The one level is access to the site/domain.

The second level is if you have differentiated access levels for some areas of your site.

Leggi di più
Postato il da John S.
Bjorn Andreassen
Bjorn Andreassen
User
Autore

I am useing login made via .htaccess, but I do not want to use that solution. Little flexibility.

Leggi di più
Postato il da Bjorn Andreassen
Bjorn Andreassen
Bjorn Andreassen
User
Autore

... and I have to send everyone a username and password.

Leggi di più
Postato il da Bjorn Andreassen
Incomedia
Stefano G.
Incomedia

Hi Bjorn.

As you already mentioned, it is currently not possible to lock the homepage. For this reason, if you do not wish to use the htaccess solution as proposed by John, you might take under consideration the possibility of leaving the homepage open with some sort of explanation about the site and a link to the login page, or perhaps simply build a simple login like page which makes use of the Login Logout Object

Try it out and see if it could work for you

Thank you

Stefano

Leggi di più
Postato il da Stefano G.
John S.
John S.
User

Hello Bjorn

You could on the home page make a redirection to one of the locked pages - this will function. And it will function without the use of the .htaccess file.

You could use something like this in a html-object on the home-page :

<meta http-equiv="refresh" content="0; url=http://www.urltoyoursite.dk/" />

Or you could on the homepage have a textobject telling something like :

"This site is only accessible for logged in users - you will be redirected in a pair of seconds"

And then a htmlobject like this :

<meta http-equiv="refresh" content="5; url=http://www.urltoyoursite.dk/" />

The url you specify should be to a protected page of course.

Hope this is useful for you

Leggi di più
Postato il da John S.