Lock Main Homepage
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
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
A maybe useful link : http://www.htaccesstools.com/articles/password-protection/
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.
Autor
I am useing login made via .htaccess, but I do not want to use that solution. Little flexibility.
Autor
... and I have to send everyone a username and password.
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
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