[BNM] Weird mod rewrite problem
James Lawrie
stwange at gmail.com
Tue Nov 4 15:24:01 GMT 2008
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
>
More information about the BNMlist
mailing list. Powered by Wessex Networks