ModRewrite Patch

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
sporto
Posts: 160
Joined: Mon 10. Nov 2003, 18:01
Location: USA, Chicago

ModRewrite Patch

Post 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...
Last edited by sporto on Thu 4. Dec 2003, 04:21, edited 1 time in total.
GHOST
Posts: 6
Joined: Fri 28. Nov 2003, 16:31

Post 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;
sporto
Posts: 160
Joined: Mon 10. Nov 2003, 18:01
Location: USA, Chicago

Post by sporto »

Thanks for the reply. That was the problem and it works now! :D. 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.
Post Reply