Announcement

Collapse
No announcement yet.

Base URL vs /mm5/ URL - odd behavior.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Base URL vs /mm5/ URL - odd behavior.

    Afternoon all.
    I have an odd issue. Should there be a difference between the store front if it’s reached via the base URL vs. the base URL + mm5? IE: http://www.example.com VS http://www.example.com/mm5/ ?? My storefront looks one way using the base url (in other words as I expect), but when you go to the same URL with the /mm5/ directory, it shows an older version. Does this make sense? It is a Miva Merchant 9 store.

    #2
    I'm reluctant to set up a re-direct due to the fact that a number of important files are in the mm5 directory.

    Comment


      #3
      Could there be a URI or htaccess setting mapping / vs /mm5 to a different page? Or a static index page in one but not the other, so perhaps the / gives the static page while /mm5 triggers serving of the store's SFNT page instead.
      David Hubbard
      CIO
      Miva
      [email protected]
      http://www.miva.com

      Comment


        #4
        The .htaccess file looks pretty standard:

        Code:
        ### Begin - Inserted by Miva Merchant
        
        DirectoryIndex /mm5/merchant.mvc
        
        ### End - Inserted by Miva Merchant
        
        
        
        
        ### Begin - Miva Merchant URI Management: Direct all non-file URIs to Miva Merchant
        RewriteEngine on
        RewriteCond %{REQUEST_FILENAME} !-s
        RewriteCond %{REQUEST_URI} !^/mm5/.*$
        RewriteRule ^(.*)$ /mm5/uri.mvc? [QSA,L]
        ### End - Miva Merchant URI Management
        And the URI Management shows I am doing a 301 redirect from Page Code SFNT to /index.html

        Comment


          #5
          Couple more things to check:

          1) Is there any type of index file in the /mm5 directory? Could be index.* depending on the web server config, or default.* Also check for another htaccess file in the mm5 directory that could be overriding what has been set at the site level.
          2) In URI Management, go to the URI's tab and sort by URI. Check if you have /mm5 defined and if it points to something different than /
          David Hubbard
          CIO
          Miva
          [email protected]
          http://www.miva.com

          Comment


            #6
            There is an index.html file in the mm5 directory (but not one in the root directory). The index.html file in the mm5 directory contains:

            Code:
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>mm5</title>
            </head>
            
            <body>
            mm5
            </body>
            </html>
            The URI Management does not have an mm5 entry, just a root entry that points to SFNT. However, when you go to /mm5/ the index.html file does not show, just an older version of SFNT.

            Comment


              #7
              If both /mm5/merchant.mvc and / return the same thing, and you've confirmed they both map to the SFNT page, but /mm5/ doesn't, then something is overriding what that request does at either the server level or the URI management level. I'd look at the NTFD page (assuming NTFD is still designated as the page not found screen) to see if perhaps it has been set to match what had been the content of an old SFNT page, because /mm5/ would be treated as a 404 if not explicitly defined in URI management. Other than that, further debugging would likely require digging around on the server.
              David Hubbard
              CIO
              Miva
              [email protected]
              http://www.miva.com

              Comment


                #8
                Would it mess anything up to put a redirect in the URI management to direct /mm5 to SFNT? I know a lot of .mvc files are located in the /mm5 directory.

                Comment


                  #9
                  Safe to add but I don't think it will have the desired effect given the URI rewrites installed in htaccess only trigger when the requested item does not exist, and /mm5 exists in your case it sounds like.
                  David Hubbard
                  CIO
                  Miva
                  [email protected]
                  http://www.miva.com

                  Comment

                  Working...
                  X