On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hi guys

    Starting to implement YAMS for first time and ran into a problem. I’ve installed YAMS (1.1.9) fine with MODx Evo (1.0.4)

    THe problem is that im on a temporary URL as the current site is still live. However, im not sure how to configure the .htaccess file to allow YAMS to work while on this temp url. (e.g - http://IP-Address/domain-name.net/courses.htm)

    I’ve messed about with the .htaccess file - using the .htaccess syntax that YAMS gives me too. However, all im getting is 404 page not found and 403 Forbidden access errors.

    How can configure to allow me to develop my multilingual site on this temp url.

    Hope someone can help

    bS
    • hi,

      the answer seems to be in your question smiley
      the htaccess file probably has a RewriteBase / if you used the one that comes with YAMS

      try /ip-adress/ instead of / or no rewritebase... even if the best thing would to create a temporary subdomain for your test site as everything works better this way

      Have swing
        réfléchir avant d'agir
      • THanks for the reply. I kind of see what you mean but I have tried different combos of paths, but just cant seem to get it working?

        Here is my .htaccess source (before I tried the YAMS version)

        # 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) - [L]
        
        # For Friendly URLs
        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


        Here is the code YAMS gives me

        # 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]
        
        # 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]
        
        # 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 ^(.*)$ index.php?q=$1 [L,QSA]


        So if we used 12.34.56.78 as my IP and testdomain.com as my domain can you let m eknow what my RewriteBase should be

        Thanks so much!
        • hi,

          assuming the url would look like http://12.34.56.78/testdomain.com/... i would try /12.34.56.78/testdomain.com/ or no rewriteBase at all... smiley

          have swing
            réfléchir avant d'agir