I'm trying to get the website I'm improving to use better uri's. So I did what I should, I changed conf.inc.php and set $phpwcms["rewrite_url"] to 1.
I also changed the .htaccess file, it now looks like this:
Code: Select all
php_flag magic_quotes_gpc Off
php_flag register_globals Off
RewriteEngine On
RewriteBase /mimizan
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.shtml$ /mimizan/index.php?id=$1.$2.$3.$4.$5.$6
RewriteRule ^(.+)\.shtml$ /mimizan/index.php?$1
The site is in the subdirectory called mimizan.
The parent dir hasn't got a .htaccess file which could override it
My host does support the .htaccess and the rewrite rules.
It is an apache server
I have used aliases.
Now I wonder why I don't get uri's like
http://www.site.ext/home.phtml
Can anyone help me out?