MLE: How to remove index.php in pretty URL in MLE version?
Posted: Tue Aug 12, 2008 3:54 pm
Hi,
I posted this question already in the german forum but somebody gave me the tip, that the
MLE (Multilanguage version of CMS) -Guru named ALBY is checking this forum - anyway.
I'm using the wonderful 1.4.1 MLE version of the cms with the "pretty url" adjustment and
everything is working fine, but the URL is looking like this:
"http://www.domain.de/index.php/de_DE/templates.html "
I tried to remove the index.php with this settings in the config.php and htaccess:
___________________________
htaccess:
RewriteEngine on
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
config.php
$config['assume_mod_rewrite'] = true;
$config['page_extension'] = '.html';
$config['internal_pretty_urls'] = false;
$config['use_hierarchy'] = true;
Effect:
With this settings the index.php was removed from the URL , but
i'm not able to switch between the languages anymore, this means
I can't switch from f.e. English to German.
Does somebody got an idea to solve my problem?
Grettings from Germany
Jimbob
I posted this question already in the german forum but somebody gave me the tip, that the
MLE (Multilanguage version of CMS) -Guru named ALBY is checking this forum - anyway.
I'm using the wonderful 1.4.1 MLE version of the cms with the "pretty url" adjustment and
everything is working fine, but the URL is looking like this:
"http://www.domain.de/index.php/de_DE/templates.html "
I tried to remove the index.php with this settings in the config.php and htaccess:
___________________________
htaccess:
RewriteEngine on
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
config.php
$config['assume_mod_rewrite'] = true;
$config['page_extension'] = '.html';
$config['internal_pretty_urls'] = false;
$config['use_hierarchy'] = true;
Effect:
With this settings the index.php was removed from the URL , but
i'm not able to switch between the languages anymore, this means
I can't switch from f.e. English to German.
Does somebody got an idea to solve my problem?
Grettings from Germany
Jimbob