We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44877
    • 21 Posts
    I'm working on a server in which the DNS to the old site is not yet redirected to it. so instead of having www.mysite.com i have mysite.s178800.gridserver.com etc to test it on and will redirect it next week.

    When I set up FURLs they don't work. The funny thing is they do show up in the url address window at the top, however it is as if my style sheets are all broken or lost.

    in my .htaccess file i have the site to be rewritten as mysite.com

    in order to get this to work should I change that to my server address until it goes live? I'm stumped and I have used FURLs before successfully.
    • Without seeing the source of the page(s), it's difficult to know for sure but a couple of ideas:


      • Are you using friendly alias paths? If so, make sure you have a <base> tag in your head (<base href="[[!++site_url]] "/>) to ensure relative links will be from your base URL. This is a common cause of the breakage you're describing.
      • When you say you have it rewritten as mysite.com? Is that the RewriteBase .htaccess parameter you are referencing. If it is, I would try setting it as this as it's on sub-domain and not in a sub-directory of your web root: /

      If you could post a bit more info (e.g. sample head section of your page, your .htaccess as it stands), I might be able to pinpoint the exact cause for you.
        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com
        • 44877
        • 21 Posts
        Here is an example of my my header in one of my templates. I did try uncaching the base url and it did not work.

        <link href='http://fonts.googleapis.com/css?family=Lato:300,400' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Noto+Sans:700,400' rel='stylesheet' type='text/css'>
           
        <script src="assets/js/custom.modernizr.js"></script>
         
        <!--POWER SLIDER JQUERY SCRIPTS and  CSS-->
                <!--jquery.js also has the code for the responsive tables to work properly-->
                <script type="text/javascript" src="assets/fadeslider/jquery.js"></script>
        <script type="text/javascript" src="assets/fadeslider/jquery.fadeSliderToggle.js"></script>
                <script type="text/javascript" src="assests/fadeslider/jquery.fadeSliderToggle.js"></script>
                <script type="text/javascript">
                $(document).ready(function() {
                    $(".fadeNext").click(function(){   
                        $(this).next().fadeSliderToggle()
                         return false;
                    })
                }); 
                </script>
                 
        <!--RESPONSIVE TABLES-->
                 
                <link rel="stylesheet" href="assets/resp-tables/responsive-tables.css">
                <script type="text/javascript" src="assets/resp-tables/responsive-tables.js"></script>
                 
        <!--END OF RESPONSIVE TABLES-->
         
        <style>body{background-image: url(images/Conseal-background2.jpg);}</style>
         
        <base href="[[++site_url]]" />
         
        </head>


        Here is my .htaccess file, since my www.conseal.com domain is not directed to this server yet that is why I thought I might have problems. But I am new to MODX for the most part, I've been picking up the design aspects pretty well. It's just some of the more technical stuff that seems to give me problmes. Thanks.

        RewriteEngine On
        RewriteBase /
         
        #php_value session.auto_start 0
         
        # Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
        #RewriteCond %{HTTP_HOST} .
        RewriteCond %{HTTP_HOST} !^conseal\.com [NC]
        RewriteRule (.*) http://conseal.com/$1 [R=301,L]
        #
        # or for the opposite domain.com -> www.domain.com use the following
        # DO NOT USE BOTH
        #
        #RewriteCond %{HTTP_HOST} .
        #RewriteCond %{HTTP_HOST} !^www\.conseal\.com [NC]
        #RewriteRule (.*) http://www.conseal.com/$1 [R=301,L]
         
         
         
        # Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent 
        # https://www.domain.com when your cert only allows https://secure.domain.com
        #RewriteCond %{SERVER_PORT} !^443
        #RewriteRule (.*) https://example-domain-please-change.com/$1 [R=301,L]
         
         
         
        # The Friendly URLs part
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
        • Okay, I would first try moving your base tag to the top of the head section and making it uncached until you point your main domain at it, e.g.:

          <head>
          <base href="[[!++site_url]]" />


          And you should comment out the .htaccess lines that are doing the redirecting for now:

          #RewriteCond %{HTTP_HOST} !^conseal\.com [NC]
          #RewriteRule (.*) http://conseal.com/$1 [R=301,L]
            Garry Nutting
            Senior Developer
            MODX, LLC

            Email: [email protected]
            Twitter: @garryn
            Web: modx.com