How to Enable mod_rewrite in Apache on Fedora

This guide applies to:
Fedora 8
Fedora 9

This page contains information about how to enable mod_rewrite in Apache Server on Fedora Linux.

Edit the configuration file
In httpd.conf (/etc/httpd/conf/httpd.conf), change 'AllowOverride None' to 'AllowOverride All'

# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
AllowOverride All

Restart apache
Type the following command as root.

service httpd restart

Test your configuration
Create a .htaccess file (a text file named .htaccess in your document root) with the following text in it.

Options +FollowSymLinks
RewriteEngine On
RewriteRule (.*) http://www.inprose.com

Navigate to your website. If rewrite is working, you will end up at www.inprose.com.

Tags: 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer