mod_rewrite problem
Posted: Sat Jun 02, 2007 4:38 pm
Hi
I'm using the latest CMSM build. I want to make SEF URLs so i headed for the CMSMS FAQ and did as they said, but that didn't work out.
I am 100% sure, that my server supports mod_rewrite because my Wordpress blog works fine.
I have NO idea what to do. I have tried altering my htaccess file but I still get the 500 internal server error. I have searched this forum but nothing worked for me.
My config file:
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
My htaccess: (I got this one from another user on this forum)
# Enable URL rewriting
RewriteEngine on
RewriteBase /
# Rewrite URLs of the form 'index.php?page=x&print=true':
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^print/(.*)$ index.php?print=true&page=$1 [L,QSA]
# Rewrite URLs of the form 'index.php?page=x':
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]
# Rewrites /page.php as /page
#RewriteRule ^/?(.*)\.php$ $1 [QSA]
# Rewrites /page as index.php?page
#RewriteRule ^([^/]*)$ index.php?page=$1 [L,QSA]
# Disables admin rewriting
#RewriteRule ^/?admin/?$ /admin/index.php [QSA]
I'm using the latest CMSM build. I want to make SEF URLs so i headed for the CMSMS FAQ and did as they said, but that didn't work out.
I am 100% sure, that my server supports mod_rewrite because my Wordpress blog works fine.
I have NO idea what to do. I have tried altering my htaccess file but I still get the 500 internal server error. I have searched this forum but nothing worked for me.
My config file:
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
My htaccess: (I got this one from another user on this forum)
# Enable URL rewriting
RewriteEngine on
RewriteBase /
# Rewrite URLs of the form 'index.php?page=x&print=true':
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^print/(.*)$ index.php?print=true&page=$1 [L,QSA]
# Rewrite URLs of the form 'index.php?page=x':
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]
# Rewrites /page.php as /page
#RewriteRule ^/?(.*)\.php$ $1 [QSA]
# Rewrites /page as index.php?page
#RewriteRule ^([^/]*)$ index.php?page=$1 [L,QSA]
# Disables admin rewriting
#RewriteRule ^/?admin/?$ /admin/index.php [QSA]