Apache .htaccess for mod_rewrite php files

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
gmseed
Forum Newbie
Posts: 9
Joined: Wed Jul 04, 2007 2:42 pm
Location: Edinburgh, Scotland, UK

Apache .htaccess for mod_rewrite php files

Post 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
Post Reply