Apache 2.2: News link, htaccess, mod_rewrite problems after upgrade to CentOS 5

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
goodsamaritan
Forum Members
Forum Members
Posts: 21
Joined: Sat Feb 02, 2008 10:21 am

Apache 2.2: News link, htaccess, mod_rewrite problems after upgrade to CentOS 5

Post by goodsamaritan »

Hello,

I am migrating servers from CentOS 4 to CentOS 5 and I ran into a problem with CMSMS and pretty URLs,

CentOS 4 uses Apache 2.0.xx CentOS 5 uses Apache 2.2.xx

The problem is with the news links.  The news links don't work.

A look at the apache 2.2 error_log shows:

Code: Select all

[Fri Mar 21 22:56:09 2008] [warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
I look at my .htaccess that allows pretty URLs and find the part that caused the error:

Code: Select all

# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# END CMSMS
So I remove the [NC] parts, no errors in the error log. But the news link still does not work.

Here is my website http://www.curemanual.com

Clicking on the title of the first news item http://www.curemanual.com/news/11/54 does not go anywhere, it stays at the root page.  But all the links on my menu works.

Please help me fix this migration problem with pretty URLs in Apache 2.2.
Last edited by goodsamaritan on Fri Mar 21, 2008 3:17 pm, edited 1 time in total.
goodsamaritan
Forum Members
Forum Members
Posts: 21
Joined: Sat Feb 02, 2008 10:21 am

Re: Apache 2.2: News link, htaccess, mod_rewrite problems after upgrade to CentO

Post by goodsamaritan »

After a good night's sleep I decided to install a custom Apache 2.0.63 on CentOS5 and try to run http://www.curemanual.com under it.

Same problem.

So this does not seem to be just an Apache 2.2 problem with the [NC] no case switch.

I also installed a new CMSMS website in the same Apache 2.2 server called http://www.curestories.com, new installation, the Pretty URLs work and the default news item works. http://www.curestories.com/news/1/39

This must be a migration problem.
goodsamaritan
Forum Members
Forum Members
Posts: 21
Joined: Sat Feb 02, 2008 10:21 am

Re: Apache 2.2: News link, htaccess, mod_rewrite problems after upgrade to CentO

Post by goodsamaritan »

I gave up on migrating http://www.curemanual.com to CentOS5 and put it back in CentOS4 (repointed my DNS entries to the old server).

Seems I will have to worry about migrating later.

I'll just add new websites to my new CentOS5 server for now.
Locked

Return to “CMSMS Core”