Cannot access /admin after enabling mod_rewrite for "pretty" URL's
Posted: Thu Jan 15, 2009 11:06 am
Hi,
I'm new to CMS Made Simple and I'm running cmsmadesimple-1.5.1. My site was working perfectly and still is, but with one small problem. After enabling mod_rewrite to implement "pretty URL's" I can no longer access my admin section. When I browse to mydomain.com/admin I'm getting the custom error page I created.
I could access my admin section prior to enabling mod_rewrite and i've disabled it and can access the admin section again - so the problem is definitely to do with mod_rewrite. I've included my entire URL setting below.
#------------
#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'] = '.html';
#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';
Do I need to make some changes to the .htaccess file inside /admin? I'm guessing the solution is something small and simple! Any help with solving this issue is much appreciated. Thanks in advance
- Mahoo
I'm new to CMS Made Simple and I'm running cmsmadesimple-1.5.1. My site was working perfectly and still is, but with one small problem. After enabling mod_rewrite to implement "pretty URL's" I can no longer access my admin section. When I browse to mydomain.com/admin I'm getting the custom error page I created.
I could access my admin section prior to enabling mod_rewrite and i've disabled it and can access the admin section again - so the problem is definitely to do with mod_rewrite. I've included my entire URL setting below.
#------------
#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'] = '.html';
#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';
Do I need to make some changes to the .htaccess file inside /admin? I'm guessing the solution is something small and simple! Any help with solving this issue is much appreciated. Thanks in advance
- Mahoo