I just install the last version of cmsms mle and all is okay, good!
but.. when i try to configure pretty url (.htaccess and config.php), the url is okay but content do not change ??
your can see the site : www.joetmoi.com
This is my .htaccess :
Code: Select all
Options -Includes
SetEnv REGISTER_GLOBALS 0
SetEnv ZEND_OPTIMIZER 1
SetEnv PHP_VER 5
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif "A2592000"
ExpiresByType image/jpg "A2592000"
ExpiresByType image/jpeg "A2592000"
ExpiresByType image/png "A2592000"
ExpiresByType image/x-icon "A2592000"
ExpiresByType application/pdf "A2592000"
ExpiresByType text/css "A2592000"
ExpiresByType text/html "A86400"
ExpiresByType application/javascript "A2592000"
ExpiresDefault "access plus 1 days"
<Files "index.html">
ExpiresByType text/html "now"
</Files>
</IfModule>
Options -Indexes
ServerSignature Off
#Options +FollowSymLinks
<IfModule mod_rewrite.c>
# BEGIN CMSMS and Rewrite Rules
RewriteEngine On
# Might be needed esp in a subdirectory
RewriteBase /joetmoi.com
# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a "<__script__>"
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
#OR script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^.*$ - [F,L]
# CMSMS Rewriting
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#comment monolingual rule and uncomment MLE rule
#RewriteRule ^(.+)$ /index.php?page=$1 [QSA]
RewriteRule ^([^/]+)/(.*)$ /index.php?page=$2&hl=$1 [QSA]
</IfModule>
Code: Select all
#------------
#URL Settings
#------------
#What type of URL rewriting should we be using for pretty URLs? Valid options are:
#'none', 'internal', and 'mod_rewrite'. 'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates. For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['assume_mod_rewrite'] = true;
$config['url_rewriting'] = 'mod_rewrite';
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '/';
$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;
#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';
Thank's and sorry for my poor english :P
Valéry