WebSite X5Help Center

 
Bjorn Andreassen
Bjorn Andreassen
User

Lock Main Homepage  en

Autor: Bjorn Andreassen
Besucht 1276, Followers 1, Geteilt 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.

Gepostet am
7 ANTWORTEN - 2 NüTZLICH
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

Mehr lesen
Gepostet am von 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.

Mehr lesen
Gepostet am von 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.

Mehr lesen
Gepostet am von Bjorn Andreassen
Bjorn Andreassen
Bjorn Andreassen
User
Autor

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

Mehr lesen
Gepostet am von 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

Mehr lesen
Gepostet am von 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

Mehr lesen
Gepostet am von John S.