Page 1 of 1

Apache mod_speling doesn't function with pretty urls in hierarchy

Posted: Thu Mar 18, 2010 7:41 pm
by jaslorax
Below is the rewrite code for pretty urls, if I take it out mod_speling functions fine - put it in and it stops working . . .

# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
# 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
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]