Page 1 of 1

Problem with htaccess

Posted: Mon Aug 24, 2009 6:44 am
by sina_saeedi82
I have a problem.
I installed mod_rewrite but when I put a .htaccess in my localhost, i get this error:

Code: Select all

Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
127.0.0.1
Mon Aug 24 13:03:21 2009
Apache/2.2.10 (Linux/SUSE)
When I remove .htaccess all the things work correctly.
please help.

Re: Problem with htaccess

Posted: Mon Aug 24, 2009 6:45 am
by papa
What does your htaccess file look like ?

Re: Problem with htaccess

Posted: Mon Aug 24, 2009 7:05 am
by sina_saeedi82

Code: Select all

RewriteEngine on
RewriteRule ^/?test\.html$ test.php [L]
Its just a test to redirect test.html to test.php
But i got error.
When I tried

Code: Select all

RewriteEngine on
I got the same error. I find out "RewriteRule" is not important, when the "RewriteEngine" is "ON" I get error. When I turn it off all the things work correctly.
I have openSUSE 11.1 with apache 2

Re: Problem with htaccess

Posted: Tue Aug 25, 2009 9:32 am
by Ambush Commander
It sounds like your server may not have mod_rewrite installed. Talk to your host?