www.webdeveloper.com
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2009
    Posts
    124

    password protect all but blog?

    I am working on a site which won't be up for a few months yet. However, I would like to have my blog available for people to see before then.

    Is there way I can password protect everything except my blog? Can I use .htpassword to do that?

  2. #2
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,040
    Just buy another domain, they're cheap!
    For SEO purposes, it can be useful too.

    Otherwise, put your password protected site inside a subfolder with .htpassword protection or somesuch, and have the blog in another folder - the root if need be, without password protection.

    So your main site - since it is password protected in its entirety, sits in a password protected subfolder.
    The default.php or homepage is the login page and is in the root folder. The blog can be in the same folder and will be visible to all, as will the login page.

    Once someone logs in, they are taken to the password protected subfolder.
    Easy enough to do.

    Good luck with the site.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



Recent Articles