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

    I have a modx version website. It is of modx evolution version 1.0.4
    I am using SQLyog community - MySql GUI v-8.6
    PHP is of version 5 on xampp
    I am using Windows Xp
    I am using Firefox 5.0 and IE 8

    The home page is working fine but all the resources whether it is linked with home page or not are not working.
    When i click the page link or preview any resource from the manager i am sent to this link below

    http://localhost/xampp/splash.php huh huh huh

    Any relevant information you need to resolve this problem please tell me.
    Please help me.

    Thanks
      • 36404
      • 307 Posts
      hi,

      honestly, the first thing i would do in you case is to create a virtual host in order to work as if it were on a domain name (something like yoursite.dev)
      this way your links could be root relative (what they probably are) and work fine.

      have swing
        réfléchir avant d'agir
        • 3749
        • 24,544 Posts
        Be sure you have this in the <head> section of your templates:

        <base href="[(site_url)]" />
          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
          • 34374
          • 5 Posts
          <base href="[(site_url)]" />



          This code is already there.

          In some of the templates instead of site_url there is a snippet called in which this below code is written.

          <?php
          return MODX_SITE_URL;
          ?>



          I really can’t figure out how to resolve this problem.

          • Are you attempting to use friendly URLs? Have you changed the ht.access file’s name to .htaccess? Did you edit the RewriteBase line in that file to reflect the name of the folder you have MODx installed into, if it’s not the web root? Are you sure your Apache installation has mod_rewrite enabled?
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 34374
              • 5 Posts
              Yes i am using friendly URLs. I have codeignitor attached to this modx. If i put friendly URLs on, no page gives output but if i put friendly URLs off the modx pages on which i have called codeignitor views are not giving outputs. Should i need not to use friendly URLs??

              Yes i have changed the ht.access file’s name to .htaccess.
              Yes i edited the RewriteBase line in that file.


              How can i know Apache installation has mod_rewrite enabled?
                • 34374
                • 5 Posts
                Please help me guys.

                I need your help
                  • 36404
                  • 307 Posts
                  hi,

                  little thing we didn’t know, your CI with modx... (good idea by the way smiley)

                  in this case the simpler way i can imagine as codeiginter rewrite rules are simpler than MODx one would be to have CI in its own directory with its own htaccess and protect this directory from MODx rewriting rules. (you’ll probably have to rewrite your CI routes too)

                  to see if rewrite rules are enabled on your apache (they sure are on the distant server) just have a look at the phpinfo() in the apache details, if you see mod_rewrite, here they are

                  have swing
                    réfléchir avant d'agir
                    • 35731
                    • 1 Posts
                    smiley smiley smileyI agree with your point of view.
                      • 34374
                      • 5 Posts
                      I already rewritten CI routes. My CI is in snippets folder. I think the problem is with modx.Can you please tell me in steps what should i do, which file i have to edit.

                      The main thing is that if i do not use friendly URLs, i manage to use some of the pages but as i put friendly user on..i can’t see no pages except home page.