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
Issues with CMS2 and mod_redirect [SOLVED]
Issues with CMS2 and mod_redirect [SOLVED]
Last edited by spcherub on Tue Jan 19, 2016 6:34 pm, edited 1 time in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Issues with CMS2 and mod_redirect
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.
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.
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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Issues with CMS2 and mod_redirect
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.
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.
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.
Re: Issues with CMS2 and mod_redirect
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.