WebSite X5Help Center

 
Bjorn Andreassen
Bjorn Andreassen
User

Lock Main Homepage  en

Autor: Bjorn Andreassen
Visited 1298, Followers 1, Udostępniony 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.

Posted on the
7 ODPOWIEDZI - 2 USEFUL
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

Czytaj więcej
Posted on the from 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.

Czytaj więcej
Posted on the from John S.
Bjorn Andreassen
Bjorn Andreassen
User
Autor

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

Czytaj więcej
Posted on the from Bjorn Andreassen
Bjorn Andreassen
Bjorn Andreassen
User
Autor

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

Czytaj więcej
Posted on the from 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

Czytaj więcej
Posted on the from 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

Czytaj więcej
Posted on the from John S.