Announcement

Collapse
No announcement yet.

New URI settings have crapped out the blog URL's and cause the blog to 404

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

    New URI settings have crapped out the blog URL's and cause the blog to 404

    I just switched a site over to the new URI system, and it's caused his blog url's to crap out. I know in the old days, and in his old .htaccess file, this snippet below is what caused index.php files the ability to own their directory, but that isn't working now. What do I need to do to get over this..... Here's what I have in .htaccess......

    HTML Code:
    ### 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]
    
    ### For blog and forum
    DirectoryIndex index.php /mm5/merchant.mvc?Screen=SFNT
    Ted Hust
    AarcMediaGroup.com

    Celebrating 13 Years of Outstanding Service & Support
    Miva Merchant Design

    #2
    Try moving the DirectoryIndex directive above the Miva URI Management block.

    Comment


      #3
      Tried that. No dice.
      Ted Hust
      AarcMediaGroup.com

      Celebrating 13 Years of Outstanding Service & Support
      Miva Merchant Design

      Comment


        #4
        URI management and Wordpress Permalinks will definitely not be compatible with one another, by default, because both rely on the use of non-existent file requests that get mapped into the request handler; either index.php for WP or uri.mvc for Merchant. This can be worked around by the use of a directory prefix on either the store or wordpress. I can give you the relevant code, however, I need more info first.

        Is your intent to have wordpress be the index page for the site? Or if it's in a subdirectory, what's the name of the subdirectory? If you'll be using wordpress as the index and with permalinks, and it's not installed in a subdirectory, do you have a prefix you are okay with using for all Merchant-generated URL's?
        David Hubbard
        CIO
        Miva
        [email protected]
        http://www.miva.com

        Comment


          #5
          I am running the iron and wool ready theme with the latest miva version with URI Management. I'd like to add a wordpress blog (as a subdirectory ... /blog) to the site... will this be an issue with a new blog set up, while the ecommerce store is using URI management? Any info you may have is appreciated. Thank you!
          Last edited by charmandhammer; 11-20-16, 03:22 PM.
          Thank you,
          Terri
          http://www.charmandhammer.com
          Gear for Hard Working Women

          Comment


            #6
            As long as it's in a subdirectory and that subdirectory will appear in the URL, then it would not be an issue. An exclusion rule would need to be added to the htaccess code that Miva Merchant inserts:

            RewriteCond %{REQUEST_URI} !^/blog

            it should go before the RewriteRule line. That will allow all blog requests to go to the blog directory where wordpress will put its own permalink rewrite code, but everything else for any directory not named /blog will go to Merchant.
            David Hubbard
            CIO
            Miva
            [email protected]
            http://www.miva.com

            Comment


              #7
              THANK YOU - very much!!
              Thank you,
              Terri
              http://www.charmandhammer.com
              Gear for Hard Working Women

              Comment

              Working...
              X