Page 1 of 1

Issues with CMS2 and mod_redirect [SOLVED]

Posted: Tue Jan 19, 2016 3:53 pm
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

Re: Issues with CMS2 and mod_redirect

Posted: Tue Jan 19, 2016 4:09 pm
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.

Re: Issues with CMS2 and mod_redirect

Posted: Tue Jan 19, 2016 4:12 pm
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.

Re: Issues with CMS2 and mod_redirect

Posted: Tue Jan 19, 2016 6:34 pm
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.