Page 1 of 1
Pretty URL (Header home link problem)
Posted: Tue Jul 22, 2008 5:22 am
by Dr.CSS
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/
Re: Pretty URL (Header home link problem)
Posted: Fri Aug 01, 2008 8:40 pm
by Dr.CSS
Hey alby
Have a good time?...
Did you have a solution for this?...
Re: Pretty URL (Header home link problem)
Posted: Sat Aug 02, 2008 9:46 pm
by alby
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
Re: Pretty URL (Header home link problem)
Posted: Sat Aug 02, 2008 9:52 pm
by Dr.CSS
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...
Re: Pretty URL (Header home link problem)
Posted: Sat Aug 02, 2008 10:26 pm
by alby
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
/* use root_url for default content */
if($this->mDefaultContent) {
$url = $config['root_url']. '/';
# return $url;
}
Alby
Re: Pretty URL (Header home link problem)
Posted: Sun Aug 03, 2008 6:39 pm
by nuno
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
Re: Pretty URL (Header home link problem)
Posted: Fri Aug 22, 2008 8:20 am
by eddytools
Its working well for me. see it here
www.eddytools.com
Re: Pretty URL (Header home link problem)
Posted: Sat Aug 23, 2008 1:20 am
by Dr.CSS
@eddytools
uh This is post about MultiLaguageEdition...
Not standard CMSMS...