Pretty URL (Header home link problem)

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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Pretty URL (Header home link problem)

Post 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/
Last edited by Anonymous on Wed Jul 23, 2008 2:53 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pretty URL (Header home link problem)

Post by Dr.CSS »

Hey alby

Have a good time?...

Did you have a solution for this?...
alby

Re: Pretty URL (Header home link problem)

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pretty URL (Header home link problem)

Post 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...
alby

Re: Pretty URL (Header home link problem)

Post 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
nuno

Re: Pretty URL (Header home link problem)

Post 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
eddytools

Re: Pretty URL (Header home link problem)

Post by eddytools »

Its working well for me. see it here www.eddytools.com
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pretty URL (Header home link problem)

Post by Dr.CSS »

@eddytools

uh This is post about MultiLaguageEdition...

Not standard CMSMS...
Locked

Return to “[locked] CMSMS MLE fork”