We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23360
    • 258 Posts
    Dear All,
    I have a small issue and I suspect the htacass file which has been modified for YAMS
    From the manager interface, I went to "Tool -> Configuration" and then
    I went down to "Status du site" (Web site status" and "Page site indisponible" (unavailable web page).

    For the first, I selected (Offline)
    And on the second, I inofrmed the id of the page, to be redirected, while the web site is ofline.
    The id of my page is : 161.

    I also set up the page 151 to be the page to be redirected while a page does not exist

    I also have YAMS. YAMS works fine.

    But my issue: I which that when the web page is offline, the visitor are redirected to http://www.website.ch/old/ (is the old web site)

    For that I create a document (which contain the id 161) and I inserted that code:
    <script type="text/javascript">// <![CDATA[
         document.location.href="/old/"
    // ]]></script>
    


    Then I would like when I enter "www.mywebsite.ch/" it redirect to the page with the id 161, and that page will redirect toe www.mywebsite.ch/old

    But has I have YAMS, and when I enter "www.mywebsite.ch", it first redirect to "www.mywebsite.ch/fr/index.php?id=1" instead of the "www.mywebsite.ch/index.php?id=161" or "www.mywebsite.ch/fr/index.php?id=161"

    Do you have a idea why it is not redirect to the page id 161?

    Many thank for your help

    Here is my htaccess file
    # For full documentation and other suggested options, please see
    # http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
    # including for unexpected logouts in multi-server/cloud environments
    # and especially for the first three commented out rules
    
    #php_flag register_globals Off
    #AddDefaultCharset utf-8
    #php_value date.timezone Europe/Moscow
    
    Options +FollowSymlinks
    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|old) - [L]
    
    # For Friendly URLs
    #RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
    RewriteCond ${REQUEST_FILENAME} !-f
    RewriteCond ${REQUEST_FILENAME} !-d
    RewriteRule ^en/(.*)$ index.php?q=$1&yams_lang=en [L,QSA]
    RewriteCond ${REQUEST_FILENAME} !-f
    RewriteCond ${REQUEST_FILENAME} !-d
    RewriteRule ^fr/(.*)$ index.php?q=$1&yams_lang=fr [L,QSA]
    RewriteCond ${REQUEST_FILENAME} !-f
    RewriteCond ${REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
    
    
    # Reduce server overhead by enabling output compression if supported.
    #php_flag zlib.output_compression On
    #php_value zlib.output_compression_level 5
    
      • 22851
      • 805 Posts
      I can confirm that this is a bug in YAMS. I have fixed it in my development version. I have decided to make my development version accessible via read access to my subversion server so that those who want to live life on the edge and use my latest less tested updates can do so.

      You can get the bleeding edge version of YAMS using a subversion client, like TortoiseSVN or RapidSVN from here: svn://nashi.podzone.org/yams/trunk
        YAMS: Yet Another Multilingual Solution for MODx
        YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
        Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
        • 23360
        • 258 Posts
        Ok thank for that information wink
        Do you have an idea, when the new version will be available?

        have a nice week!
          • 22851
          • 805 Posts
          I can’t say when I am going to find the time to tidy up some loose ends and submit a new version to the MODx repository I’m afraid. Did you manage to get a copy of the development version via SVN? If not, I can zip up a copy of the current development version and make it available as a download from my website.
            YAMS: Yet Another Multilingual Solution for MODx
            YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
            Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.