Page 1 of 1
ModRewrite Patch
Posted: Wed 3. Dec 2003, 14:54
by sporto
I just installed a the patch for the modrewrite but it doesn't seem to be doing anything. I did include the .htaccess file like described.
Thanks for your suggestions...
Posted: Wed 3. Dec 2003, 16:09
by GHOST
It seems you do not have the necessary config entry into the conf.inc.php
Check the "other stuff" part and replace the default settings:
$phpwcms["rewrite_url"] = 0;
with this one:
$phpwcms["rewrite_url"] = 1;
Posted: Wed 3. Dec 2003, 17:57
by sporto
Thanks for the reply. That was the problem and it works now!

. Funny thing was that I looked in that file earlier and there was nothing there about re-write at all. I added $phpwcms["rewrite_url"] = 1; to the file and it made it work.
One other comment about this... I had to play around with my .htaccess file a bit. For some reason it didn't work for me as written. I had to remove extra periods from the file. My .htaccess file had to look like this:
Code: Select all
RewriteEngine on
RewriteRule ^(.*).html$ ./index.php?id=$1
RewriteRule ^index.html$ ./index.php
rather than this:
Code: Select all
RewriteEngine on
RewriteRule ^(.*).html$ ../index.php?id=$1
RewriteRule ^index.html$ ../index.php
Thanks.