[BNM] Weird mod rewrite problem

Julian Blundell old at w34u.com
Tue Nov 4 15:35:59 GMT 2008


Hi James

There were no problems until I started trying to use mod rewrite, all I have
to do is turn it on, without any rules at all, and I get that result.

Jules

2008/11/4 James Lawrie <stwange at gmail.com>

> Are you sure it's the mod rewrite causing this? Were you getting it
> before you enabled it?
> Usually htpasswd errors are "Authorisation Failed", whereas forbidden
> errors are caused by file permissions.
> Which user is Apache running as? Does that user have access to
> potter_profile.php?
> To check, try to su <apacheuser> as root, and then try to cat or
> execute that file.
>
> 2008/11/4 Julian Blundell <old at w34u.com>:
> > Hi
> >
> > Just doing my first mod rewrite stuff, but I just get
> >
> > Forbidden You don't have permission to access /potter_profile.php on this
> > server.
> >
> > ------------------------------
> > Apache/1.3.37 Server at test3.w34u.com Port 80
> >
> > The contents of the .htaccess file looks like this
> >
> >
> > AuthUserFile /usr/local/etc/.htpasswd
> > AuthGroupFile /dev/null
> > AuthName "Pease enter the test area password"
> > AuthType Basic
> > require valid-user
> >
> > # Turn on the rewriting engine
> > RewriteEngine On
> >
> > RewriteRule ^potters/([A-Za-z0-9-]+)/?$ potter_profile.php?id=$1 [NC,L]
> >
> > It ain't that complicated, any ideas anybody?
> >
> > Jules
> > --
> >
> > BNM Subscribe/Unsubscribe:
> > http://www.brightonnewmedia.org/options/bnmlist
> >
> > BNM powered by Wessex Networks:
> > http://www.wessexnetworks.com
> >
> --
>
> BNM Subscribe/Unsubscribe:
> http://www.brightonnewmedia.org/options/bnmlist
>
> BNM powered by Wessex Networks:
> http://www.wessexnetworks.com
>


More information about the BNMlist mailing list. Powered by Wessex Networks