Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I need to add a user authentication page before the actual homepage of the website.

In Joomla! I just set the website offline and the offline page loads in place of the homepage but then it's automatically throwing a "503 Service Temporarily Unavailable" error which I would like to avoid. That's why I would like to know the other ways to load an authentication page before the homepage.

NB: I'm using Apache servers if that's relevant Thank you

share|improve this question

1 Answer 1

up vote 2 down vote accepted

A simple solution on the Apache server side is using Basic access authentication.

See the section "Getting it working" for an example. And here some answers on Stackoverflow.

Pro: If you have access to the command line and your webserver it's a 2 minute set up that blocks access to your project.

Con: Managing access this way for many users might be inconvenient. And you need access to the command line and your webserver :-)

share|improve this answer
    
Is there any possibility to manage it from the control panel given by the hosting server ? –  danie7LT Oct 7 '12 at 12:42
    
Well, I don't know your control panel but the ones I know all support basic HTTP password protection. Your provider/support surely will know. –  initall Oct 8 '12 at 7:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.