Re: quick apache rule
"Dave \"doughnut\" Fogarty" <[email protected]>
| Newsgroups | gmane.org.user-groups.linux.pdxlug |
|---|---|
| Message-ID | <[email protected]> |
Did you test that with anything other than "http://yoursite.com/" I'm not sure that it will actually match "http://yoursite.com/foo/". RewriteRules are based on RegEx, not globs. They look very similar. You many need to make your RewriteRule: RewriteRule ^/.* /alert/alert.php [L] -- ------------------------------------------------------------------------ /(D|\|\))([o0](u[g6]h)?nu[t+7]|[a\@4](v|\\\/)([e3]|[i1!](d|\|\))))/i On Fri, 20 Aug 2004, Robby Russell wrote: >On Fri, 2004-08-20 at 13:12, Randal L. Schwartz wrote: >> >>>>> "Robby" == Robby Russell <[email protected]> writes: >> >> Robby> What method should I go about doing this with? Rewrite? >> >> Yes. See <http://httpd.apache.org/docs/misc/rewriteguide.html>, >> with an example similar to "Blocking of robots". > >Thanks! > >this worked: > >RewriteCond %{REMOTE_ADDR} ^192\.168\.1\.1$ >RewriteRule ^/* /alert/alert.php [L] > > > >-- >/*************************************** >* Robby Russell | Owner.Developer.Geek >* PLANET ARGON | www.planetargon.com >* Portland, OR | [email protected] >* 503.351.4730 | blog.planetargon.com >* PHP/PostgreSQL Hosting & Development >****************************************/ > >