Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-15-2009, 03:09 PM   PM User | #1
bencharity
New Coder

 
Join Date: Dec 2008
Location: Kennesaw, GA
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
bencharity is an unknown quantity at this point
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:

Code:
AuthName "Under Development"
AuthUserFile /home/askapache.com/.htpasswd
AuthType basic
Require valid-user
Order Deny,Allow
Deny from all
Allow from 1.1.1.1 w3.org googlebot.com google.com google-analytics.com
Satisfy Any
but I am such a beginner at htaccess, I'm not sure how to really tweak it for my needs so I couldn't get it to work. (I do understand at least that the 1.1.1.1 needs to by my IP)

So any help for someone who would like to learn would be great.

Thanks in advance!
Ben
bencharity is offline   Reply With Quote
Reply

Bookmarks

Tags
block users, htaccess

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:13 AM.


Advertisement
Log in to turn off these ads.