We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37557
    • 25 Posts
    Site is online. The admin made a redirect to the other domain where I developed the new modx revo site. Both domains are on the same server.
    Redirect works probably cause of funneling, but wayfinder and all internal links still show the development URLs because [[+siteURL]] is not updating.
    I deleted the cache via backend and ran a new setup. No changes. Need help.
    Thank you
    dreh

    modx revo with fURL
    site.net goes to 2012.othersite.net [ed. note: dreh23 last edited this post 14 years, 9 months ago.]
      • 37393
      • 68 Posts
      It would help a lot if you posted your htaccess file and told us which version of php and apache that you are using.
        IntoVPS - VPS hosting service with super-fast response.
        If MODx does not suit your needs then you have a lack of imagination.
        • 37557
        • 25 Posts
        Hi bowkilled,
        thank you for your time:

        Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r
        PHP Version 5.2.17
        I don't have access to the redirect htaccess I could ask if thats necessary. In "my" htaccess I have:

        <IfModule mod_rewrite.c>
          Options +FollowSymlinks
          RewriteEngine On
          RewriteBase / 
          # Friendly URLs
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
        </IfModule>
        


        and this (commented - if I turn it on the site is not available)

        # <IfModule mod_rewrite.c>
        #   RewriteCond %{HTTPS} !=on
        #   RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
        #   RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
        # </IfModule>
        



          • 37393
          • 68 Posts
          Try this:

          <IfModule mod_rewrite.c>
          RewriteCond %{HTTPS} ^off$ [NC]
          RewriteCond %{HTTP_HOST} ^olddomain.com [NC]
          RewriteRule ^(.*)$ <a href="http://www.domain.com/$1" target="_blank" rel="nofollow">http://www.domain.com/$1</a> [R=301,L]
          </IfModule>


          Also try clear your site´s cache after you have updated the htaccess file.
            IntoVPS - VPS hosting service with super-fast response.
            If MODx does not suit your needs then you have a lack of imagination.
            • 3749
            • 24,544 Posts
            Did you run setup in upgrade mode on the new site? That will usually straighten out the paths.


            ---------------------------------------------------------------------------------------------------------------
            PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
            MODx info for everyone: http://bobsguides.com/MODx.html
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting