How-do-I-change-these-dashes-to-slashes-in-my-path?
Posted: Thu Apr 03, 2008 9:28 am
Hello,
No matter how long I try, or what I do, I can not make sense of the way the CMSMS "friendly URL's" work.
It mostly works as I would hope. But there are a couple of issues that are driving me nuts.
OK Here's the data:
config.php:
.htaccess:
So here's the situation:
I have a menu like so:
* HOME - no children ( URI: / )
* RESOURCES (URI: /RESOURCES )
* how-to (URI: /RESOURCES/how-to )
note: the how-to has RESOURCES chosen as the parent, the how-to page has links to "how-to's" in it - this is where the problem begins.
the how-to page has a link to crontab.html. I created the crontab in the pages section of CMSMS, I told it to use RESOURCES
as it's parent, I told it NOT to display it in the menu. However, when I click on the crontab.html link, I am directed to:
/RESOURCES-crontab.html - NOT: /RESOURCES/crontab.html
Please help. This makes no sense to me. Why is there a hyphen and not a slash ( / )? Where do I fix this?
Thank you in advance.
Chuck
No matter how long I try, or what I do, I can not make sense of the way the CMSMS "friendly URL's" work.
It mostly works as I would hope. But there are a couple of issues that are driving me nuts.
OK Here's the data:
config.php:
Code: Select all
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/usr/local/www/website';
#Automatically assign alias based on page title?
$config['auto_alias_content'] = true;
#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'] = true;
#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;
Code: Select all
# Make sure you have Options FollowSymLinks
# and Allow on
RewriteEngine On
#Rewrites page.shtml as index.php?page
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?location=$1 [QSA]
I have a menu like so:
* HOME - no children ( URI: / )
* RESOURCES (URI: /RESOURCES )
* how-to (URI: /RESOURCES/how-to )
note: the how-to has RESOURCES chosen as the parent, the how-to page has links to "how-to's" in it - this is where the problem begins.
the how-to page has a link to crontab.html. I created the crontab in the pages section of CMSMS, I told it to use RESOURCES
as it's parent, I told it NOT to display it in the menu. However, when I click on the crontab.html link, I am directed to:
/RESOURCES-crontab.html - NOT: /RESOURCES/crontab.html
Please help. This makes no sense to me. Why is there a hyphen and not a slash ( / )? Where do I fix this?
Thank you in advance.
Chuck