Page 1 of 1
Forbidden Access
Posted: Fri Jul 03, 2009 2:39 pm
by amao
hi all I am using mod_rewrite
with .htaccess contain
Code: Select all
# This folder does not require access over HTTP
# (the following directive denies access by default)
Order allow,deny
RewriteEngine on
RewriteRule ^bob\.html$ /alice.html [L]
please help
Re: Forbidden Access
Posted: Fri Jul 03, 2009 3:49 pm
by jackpf
Help with what?
Re: Forbidden Access
Posted: Sat Jul 04, 2009 1:47 am
by amao
Sorry , when I try to access any bob.html
give me forbidden access 403
Re: Forbidden Access
Posted: Sat Jul 04, 2009 2:26 am
by requinix
Seriously.
Code: Select all
# (the following directive denies access by default)
Re: Forbidden Access
Posted: Sat Jul 04, 2009 3:52 am
by amao
tasairis wrote:Seriously.
Code: Select all
# (the following directive denies access by default)
I removed this line but still not working
sorry I am new in php
Re: Forbidden Access
Posted: Sat Jul 04, 2009 4:37 am
by jackpf
Ok, 1 that line is a comment so won't do anything.
2, this is apache, not php.
And 3, you're denying access to the directory, so trying to rewrite urls to there is not going to work.
Re: Forbidden Access
Posted: Sat Jul 04, 2009 9:58 am
by amao
jackpf wrote:Ok, 1 that line is a comment so won't do anything.
2, this is apache, not php.
And 3, you're denying access to the directory, so trying to rewrite urls to there is not going to work.
thanks Jackpf I solved it by adding
<Directory /www>
Order Allow,Deny
</Directory>
but now I got this error when I try to access any page
nternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Re: Forbidden Access
Posted: Sat Jul 04, 2009 12:43 pm
by jackpf
Why don't you give it a go.