Apache .htaccess for mod_rewrite php files
Posted: Fri Jan 07, 2011 9:44 am
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
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