Page 1 of 1

sef + how to remove "en_Us" from the url

Posted: Tue Jul 28, 2009 10:24 am
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

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

Posted: Tue Jul 28, 2009 1:21 pm
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