|
Posted by frizzle on December 8, 2006, 2:49 pm
Please log in for more thread options
I have no access to an error log ...
What i have is this:
RewriteCond % !^my.ip.add.ress$
RewriteCond % ^/Admin(/.*)$
RewriteRule (.*) /include/error_404/$1 [L]
But even this doesn't work ...
I thought adding [NC} would make it case insensitive, but it didn't ...
Thanks for helping.
John Bokma schreef:
>
> > Hi there,
> >
> > I have a site, and i need some help with the htaccess. I'm not being
> > lazy here, but my own tryings ended up with nothing or with error
> > 500's.
> >
> > What i need are the following things:
> > - Requests for "/admin" and "/Admin" should be redirected to "404.html"
> > if they're not from my IP address.
> >
> > - if it's my IP, redir "domain.com/Admin", "domain.com/admin" and
> > "www.domain.com/admin" to "www.domain.com/Admin"
> > (note the capitals and the www)
> >
> > - "domain.com/en" to "domain.com/index_en.html" and "www.domain.com/en"
> > to "www.domain.com/en"
> >
> > I hope i'm not asking too much, i couldn't figure this out myself ...
>
> Show us what you got so far.
>
> Also, check your error log (you didn't) because there is where the
> description of the error is stored, and hence you don't need to guess what
> you did wrong.
>
> --
> John Need help with SEO? Get started with a SEO report of your site:
>
> --> http://johnbokma.com/websitedesign/seo-expert-help.html
|