Issues with CMS2 and mod_redirect [SOLVED]

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
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Issues with CMS2 and mod_redirect [SOLVED]

Post by spcherub »

I'm getting 404 errors when I enable mod_redirect on a new install of CMS2. Here is a quick recap of the config:
- CMS 2.1.1 fresh install
- CMS installed in sub-directory under domain
- I have added subdirectory reference to RewriteBase in htaccess
- I have enabled mod-redirect in config.php
- I get a 404 error when accessing any page other than default (home)
- I am not getting any errors in http logs
- This is on a Debian instance, running Apache2 and MySQL5+
- Using "internal" to enable pretty urls work fine, but I don't want the "index.php" inserted into the URL

The strange thing is I have another older install of CMSMS (1.12 I think), that is configured the same way and works just fine, so I am not inclined to suspect the server setup.

I must be missing something very straightforward, so any help pointing me in the right direction will be much appreciated.

Thanks,
Sanjay
Last edited by spcherub on Tue Jan 19, 2016 6:34 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Issues with CMS2 and mod_redirect

Post by calguy1000 »

Other than checking for typos and silly errors
I suggest you look in any parent directory for .htaccess files that could be messing with stuff.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Issues with CMS2 and mod_redirect

Post by calguy1000 »

And you should follow your access logs to see exactly what is happening.

if you are requesting a URL for http://mysite.com/subdir/somepage
you should see in the access log a request for
http://mysite.com/subdir/index.php?page=somepage

And that is when cmsms starts.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: Issues with CMS2 and mod_redirect

Post by spcherub »

Turns out it was a configuration issue with the Apache instance. For some reason the server config did not include a ServerName directive and this was causing the problem.
Locked

Return to “CMSMS Core”