Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: htaccess code needed
01-15-2009, 03:09 PM #1
- Join Date
- Dec 2008
- Kennesaw, GA
- Thanked 0 Times in 0 Posts
htaccess code needed
I posted this in another part of this forum but didn't get my answer so I thought I may have done it it the wrong section.
I am building a website which is almost finished, so most of my files are online already. While my index page has no links to go further (it's an 'under construction' page) google is still indexing everything. This enables people to get into my site prior to its launch.
I want an htaccess that allows me, w3.org, and google bots to access the site, but everyone else to be bumped back to my construction page. I tried this code:
AuthName "Under Development" AuthUserFile /home/askapache.com/.htpasswd AuthType basic Require valid-user Order Deny,Allow Deny from all Allow from 126.96.36.199 w3.org googlebot.com google.com google-analytics.com Satisfy Any
So any help for someone who would like to learn would be great.
Thanks in advance!