: Enable mod_rewrite on OpenSuSE 11.04 I have a problem on OpenSuSE 11.04. I configured apache and enabled mod_rewrite but it doesn't working. on every php file I get 403 forbidden error.
I have a problem on OpenSuSE 11.04. I configured apache and enabled mod_rewrite but it doesn't working. on every php file I get 403 forbidden error.
More posts by @Angela700
1 Comments
Sorted by latest first Latest Oldest Best
Have you updated your /etc/apache2/httpd.conf file? If not, open it and add the following lines at the end of the file. You may need to replace /srv/www/htdocs with the path to your server's 'htdocs' or 'public_html' directory:
DocumentRoot "/srv/www/htdocs"
<Directory "/srv/www/htdocs">
Options +FollowSymLinks
AllowOverride all
Order deny,allow
Allow from all
</Directory>
Restart Apache and check your URL again. If you still see errors, try creating an .htaccess file in your htdocs folder to force the base directory. This seems to help sometimes if your hosting company puts their VPS boxes behind another server:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
</IfModule>
If this still fails to fix things for you, check the logs at /var/log/apache2/access_log and /var/log/apache2/error_log to see what's going wrong. You can also use RewriteLogLevel to get more information about where the URL rewrite fails.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.