We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3133
    • 98 Posts
    Hi There,

    I try to run gCart under YAMS

    - Alone gCart runs correctly with Friendly URLs

    htaceess
    RewriteEngine On
    RewriteBase /
    
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
    RewriteRule (.*) http://www.example.com/$1 [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


    Then Item’s links look like
    [+gClearItemURL+]= /index.html&clearItem=item.html


    Under YAMS and because of rewriting we’ve got http://www.example.com/fr/ http://www.example.com/en/

    with htaceess


    RewriteEngine On
     # Friendly URLs
     RewriteEngine On
     RewriteBase /
     
     # Fix Apache internal dummy connections from breaking [(site_url)] cache
    RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
    RewriteRule .* - [F,L]
    
     # Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
    RewriteRule (.*) http://www.example.com/$1 [R=301,L]
    
     
     # Exclude /assets and /manager directories from rewrite rules
     RewriteRule ^(manager|assets) - [L]
     
     # Redirect from mydomain.com/rootname to mydomain.com/rootname/
     RewriteRule ^en$ en/ [R=301,L]
     RewriteRule ^fr$ fr/ [R=301,L]
     
     # The Friendly URLs part
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^fr/(.*)$ index.php?q=$1 [L,QSA]
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
    



    And I got this kind of link... and gCart doesn’t work out anymore

    [+gClearItemURL+]= /index.html&clearItem=http://www.exemple.com/fr/item.html


    I don’t have any clue for fixing this problem. May be I made something wrong when I setup Yams

    Any Idea?

    Thank You