I'm quite new to CMS (only a two month user ), and moreover, I'm french, thus my english is not very good
I would like to first thank you for CMS-MS: it is really great, easy-to-use and powerfull. Thanks a lot !
I have a question on which I didn't find the answer. My question is propably stupid, so I prefer to apologize in advance
I created a website for the association of my parents and I would like to use pretty url. For now on, I only try on my computer with a local server (MAMP on a Mac) and I faced a small problem
I access to my "local website" by typing
"http://localhost:8888/AssociationAFDE/CMSMS/test/"
I change the config.php file (on the root) by adding the following lines:
Code: Select all
$config['root_url'] = 'http://localhost:8888/AssociationAFDE/CMSMS/test/';
$config['timezone'] = 'Europe/Paris';
$config['default_encoding'] = 'utf-8';
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
Code: Select all
Options +FollowSymLinks
RewriteEngine on
# Rewrites urls
RewriteBase /AssociationAFDE/CMSMS/test/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
".../parents/child/blabla.html"
However ...
1) In a child section, the path are now wrong. For example, there is a picture on the top of the website which is used/called by every page (it is contained in a cms "global content block"). This picture is called by
Code: Select all
<img src="uploads/images/global/mypicture.jpg" />
2) The news module also change the paths in a much more pretty style, but not totally. I didn't find on internet if it is possible to make it prettier. Fow now on, on a news which is entitled "Reunion-9-Janvier-2012", the adress looks like
.../news/12/65/Reunion-9-Janvier-2012/d,evenements.html
Is it possible to obtain just
.../news/Reunion-9-Janvier-2012.html
?
Thank you a lot in advance and, again, thank you for the wonderful work you have done, and that you continue to do !
Here are some informations about my computer, I hope they are sufficient:
CMS version 1.10.3
MAMP server (Mac Os X Lion) 2.0.3
Apache 2.0 Handler (local server)
PHP Version 5.3.6