I have 1.3.1 MLE, english and chinese the config is set use mod rewrite true, with .html, and internal pretty URL false, hierarchy is false, and htaccess like this, pretty URLs work...
RewriteEngine On
# Might be needed in a subdirectory
#RewriteBase /
# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^([^/]+)/(.+)$ index.php?hl=$1&page=$2 [QSA]
# END CMSMS
# END Rewrite rules
Problem: when in chinese side there is a link in header, top image on left, to home page, but it takes you to english side home page...
Tag in header: {cms_selflink dir="start" text="$sitename"}...
http://www.ambassadorconcierge.com/
Pretty URL (Header home link problem)
Pretty URL (Header home link problem)
Last edited by Anonymous on Wed Jul 23, 2008 2:53 am, edited 1 time in total.
Re: Pretty URL (Header home link problem)
Hey alby
Have a good time?...
Did you have a solution for this?...
Have a good time?...
Did you have a solution for this?...
Re: Pretty URL (Header home link problem)
I don't see any problem in link site with FF
I am not guru with mod_rewrite but I think should be:
RewriteEngine On
# Might be needed in a subdirectory
#RewriteBase /
# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/(.+).html$ index.php?hl=$1&page=$2 [QSA]
# END CMSMS
Alby
I am not guru with mod_rewrite but I think should be:
RewriteEngine On
# Might be needed in a subdirectory
#RewriteBase /
# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/(.+).html$ index.php?hl=$1&page=$2 [QSA]
# END CMSMS
Alby
Re: Pretty URL (Header home link problem)
So you went to site and clicked chinese flag and looked at a couple of chinese pages then hit the home link in the logo in upper left corner and it took you to chinese home page from a chinese page?...
Not me it keeps going to the english home page, I sent link to your answer to person who has access to FTP to the .htaccess file to see if it helps...
thanx...
Not me it keeps going to the english home page, I sent link to your answer to person who has access to FTP to the .htaccess file to see if it helps...
thanx...
Re: Pretty URL (Header home link problem)
mark wrote: So you went to site and clicked chinese flag and looked at a couple of chinese pages then hit the home link in the logo in upper left corner and it took you to chinese home page from a chinese page?...
Ok, I reproduced ...
lib/classes/class.content.inc.php
Alby/* use root_url for default content */
if($this->mDefaultContent) {
$url = $config['root_url']. '/';
# return $url;
}
Re: Pretty URL (Header home link problem)
IMMO:
RewriteEngine On
# Might be needed in a subdirectory
RewriteBase / <---------------------------
# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f <---------------------------
RewriteCond %{REQUEST_FILENAME} !-d <---------------------------
RewriteRule ^([^/]+)/(.+)$ index.php?hl=$1&page=$2 [QSA]
# END CMSMS
# END Rewrite rules
RewriteEngine On
# Might be needed in a subdirectory
RewriteBase / <---------------------------
# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f <---------------------------
RewriteCond %{REQUEST_FILENAME} !-d <---------------------------
RewriteRule ^([^/]+)/(.+)$ index.php?hl=$1&page=$2 [QSA]
# END CMSMS
# END Rewrite rules
Re: Pretty URL (Header home link problem)
Its working well for me. see it here www.eddytools.com
Re: Pretty URL (Header home link problem)
@eddytools
uh This is post about MultiLaguageEdition...
Not standard CMSMS...
uh This is post about MultiLaguageEdition...
Not standard CMSMS...