Page 1 of 1

Apache .htaccess for mod_rewrite php files

Posted: Fri Jan 07, 2011 9:44 am
by gmseed
Hi

I have the following .htaccess file in my root /index.php folder:

=====

Options +FollowSymlinks
RewriteEngine on

RewriteRule ^(.*)\.xml$ $1.php [nc]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?module=$1 [L,QSA]

# Enforce Unicode ubiquitously
AddDefaultCharset UTF-8
DefaultLanguage en-GB
php_value default_charset UTF-8

=====

and I've uncommented:

LoadModule rewrite_module modules/mod_rewrite.so

in my apache .httpd.conf file

but links such as:

../news

are not loading

Is there something else that Apache requires to activate mod-rewrite?

Thanks

Graham