[FIXED] cmsms pretty urls not working

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
sainsbury

[FIXED] cmsms pretty urls not working

Post by sainsbury »

Hi,

I have the following .htaccess file in my web directory:

Code: Select all

Options +FollowSymLinks
RewriteEngine on
RewriteBase /

# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
(The standard one, basically).

But it seems to be being totally ignored by apache. All the correct httpd.conf settings have been applied to enable mod_rewrite but it does not work  :(

I did have it working, but then installed wordpress into a subdirectory which seemed to stop the pretty urls working (but could be totally unrelated). I have had this 'CMSMS with Wordpress in a subdirectory' work before but I've done something to stop this one working. Any thoughts?

Thanks,
Chris
Last edited by sainsbury on Sun Jul 22, 2007 10:04 am, edited 1 time in total.
sainsbury

Re: cmsms pretty urls not working

Post by sainsbury »

PS I'm getting 404 file not found errors for, for example, /about/ or /home/

The index page does work, but no others.
SimonSchaufi

Re: cmsms pretty urls not working

Post by SimonSchaufi »

have you enabled it in the config.php?
sainsbury

Re: cmsms pretty urls not working

Post by sainsbury »

Yes I have - but to my knowledge the config.php simply changes the links on your site, whereas the .htaccess file actually makes them work. The links have been changed but do not work, hence a problem with .htaccess
sainsbury

Re: [FIXED] cmsms pretty urls not working

Post by sainsbury »

I've fixed this - AllowOverride was set to None in my Apache config (so it was obviously never working...)

Thanks anyway
Pierre M.

Re: [FIXED] cmsms pretty urls not working

Post by Pierre M. »

Hello Chris,
sainsbury wrote: I have the following .htaccess file in my web directory:
...
(The standard one, basically).
I'd like to stress that this is not the CMSms provided .htaccess sample (in the "doc" folder of the official package).
Pierre M.
Locked

Return to “CMSMS Core”