sef + how to remove "en_Us" from the url

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
mls24
Forum Members
Forum Members
Posts: 11
Joined: Fri Jul 17, 2009 5:35 am

sef + how to remove "en_Us" from the url

Post by mls24 »

hi guyz,

I am trying to implement sef urls on my site.
i have two language en_US, nl_NL.

i dont want language parameter to appear in my url.

i have used following  mod_rewrite rules and config settings

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]


$config['url_rewriting'] = 'mod_rewrite';
$config['assume_mod_rewrite'] = true;
$config['internal_pretty_urls'] = false;
$config['use_hierarchy'] = true;

i am not good with .htacces files.

please help me..
thanks & regards,
mike
alby

Re: sef + how to remove "en_Us" from the url

Post by alby »

mls24 wrote: I am trying to implement sef urls on my site.
i have two language en_US, nl_NL.

i dont want language parameter to appear in my url.
You must have languages in url (is necessary for display different language page) but you can display other language param (for example en and nl only), look in howto topic

mls24 wrote: i have used following  mod_rewrite rules and config settings

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
This not work, you must apply last row from doc/htaccess.mle

mls24 wrote: $config['url_rewriting'] = 'mod_rewrite';
$config['assume_mod_rewrite'] = true;
$config['internal_pretty_urls'] = false;
This is a configuration mix .....
first line is for 1.6+, 2-3 are for < 1.6
If you have 1.6 or 1.6.1 is necessary the first ONLY

Alby
Locked

Return to “[locked] CMSMS MLE fork”