homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

RewriteCond question

10+ Year Member

Msg#: 500 posted 3:00 am on Oct 28, 2003 (gmt 0)

Earlier today I was going through my server logs and found more redirects to my 403.php error document than usual. These are some examples of the IP's I gave 403 errors to:


After trial and error I found 2 typos that caused the problem:
RewriteCond %{REMOTE_ADDR} ^63\.240\.227\.11[2-9]12[0-7] [OR]

-should have been:

RewriteCond %{REMOTE_ADDR} ^63\.240\.227\.(11[2-9]12[0-7]) [OR]


RewriteCond %{REMOTE_ADDR} ^63\.240\.248\.12[89]13[0-9]14[0-3] [OR]

-should have been:

RewriteCond %{REMOTE_ADDR} ^63\.240\.248\.(12[89]13[0-9]14[0-3]) [OR]

By not putting parentheses around the final elements of the statements I effectively blocked all users that had a 112 - 143 anywhere in their IP address.

A few of those IP's belonged to google, hopefully they will forgive me and come back.

Yet another reason to watch what you type very carefully.

--EDIT I forgot to ask the question.

Is google going to come back?



WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 500 posted 3:37 am on Oct 28, 2003 (gmt 0)


Good advice, there... Check your work!

Google will come back as long as you have at least one incoming link to your site. Since they crawl a fairly large portion of the Web, they've seen all the possible problems you could imagine with Web site configurations -- and have developed rather forgiving approaches to error-handling as a result.

You could always "call" Googlebot back by submitting your home page to Google - See their Web site. While it's usually better to just let them find you, I think using their submit page (once) is useful when trying to recover from configuration errors like this.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved