Announcement

Collapse
No announcement yet.

I'd like to capture URI for 301 redirect

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

    I'd like to capture URI for 301 redirect

    Rebuilding old MMUI store in Miva 10 Shadows. Old uses Ultimate SEO Links. We want to get a list of those(CTGY,PROD) to add to URI Manager in rebuilt store for a 301 redirect.

    The module appears to use an internal screen, not unlike URI Manager I guess. Is there a table that stores the patterns of that link?

    Or, is there a simple way to convert? Or, other methods?

    Scott


    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    #2
    Did the SEO Links use a predictable format, so you could use the API to add the new URI's, perhaps just iterating through product/category code? Or was it doing something like using the product name in the URL? Is the old store on version 10?
    David Hubbard
    CIO
    Miva
    [email protected]
    http://www.miva.com

    Comment


      #3
      The old store isn't on Miva 10 yet because of the CTGY/PROD Template manager modules.

      Haven't studied the links yet in any detail so I haven't seen a pattern. But, I have seen some characters that I couldn't explain.

      I have thought about reproducing the pattern using the URI system...

      Scott
      Last edited by ids; 02-16-21, 12:40 PM.
      Need to offer Shipping Insurance?
      Interactive Design Solutions https://www.myids.net
      MivaMerchant Business Partner | Certified MivaMerchant Web Developer
      Competitive Rates, Custom Modules and Integrations, Store Integration
      AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
      My T-shirt Collection is mostly MivaCon T-shirts!!

      Comment


        #4
        I created a URI csv import from a page template a while back using the sitemap item

        Code:
        "PAGE_CODE","CATEGORY_CODE","PRODUCT_CODE","URI"," CANONICAL","STATUS"<br>
        <mvt:item name="sitemap" />
        Then in the sitemap tab:

        Code:
        <mvt:foreach iterator="product" array="products">
        <mvt:if expr="l.settings:product:active EQ 1">
        "","","&mvte:product:code;","/path-to/&mvte:slugname;.html","Canonical","200"<br>
        </mvt:if>
        </mvt:foreach>
        
        <mvt:foreach iterator="product" array="products">
        <mvt:if expr="l.settings:product:active EQ 1">
        "","","&mvte:product:code;","/path-to/p/&mvte:product:code;.html","0","301"<br>
        </mvt:if>
        </mvt:foreach>
        You can use this for the categories array as well.

        This was before Miva had the slugified function so I have some other code that stripped special characters and created a slugified name.

        As David said, you have to recognize a pattern and massage the uri accordingly.
        http://www.alphabetsigns.com/

        Comment


          #5
          Yep, if we can figure out the pattern, there's probably some combination of import/export or API usage that can be used to populate the old URI's to allow the store to redirect to the preferred URI. The thing that I've seen cause issues is when a store using those mods has been configured to use the product display name in the URL, which can get ugly trying to figure out the correct value to import / assign.
          David Hubbard
          CIO
          Miva
          [email protected]
          http://www.miva.com

          Comment


            #6
            What I've found is that the USL module doesn't appear to have any configuration options outside of the htaccess file. So, mostly a hands-off type of module.

            The suggested htaccess instructions do a redirect to the internal USL screen to process the URI, where the correct page is loaded.
            For the pattern, the URI appears to be a sluggified product name. in reality, the value of the product name in the URL is simply &mvta:product:name;

            Therefore, much easier than it was appearing to repro the older URLs.

            Dan, Thanks for that code idea. Looks to be very productive.

            Thanks,

            Scott


            Need to offer Shipping Insurance?
            Interactive Design Solutions https://www.myids.net
            MivaMerchant Business Partner | Certified MivaMerchant Web Developer
            Competitive Rates, Custom Modules and Integrations, Store Integration
            AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
            My T-shirt Collection is mostly MivaCon T-shirts!!

            Comment


              #7
              Okay, in that case the thing you'll have to test out is how spaces and other special URI characters are interpreted by USL vs URI Management, in case you need to do any translation. I'm not sure if URI Management will treat a space the same way, so I don't know if you can take those values as-is, or if you'd need to encode them on the way into URI Management, like /prod/My%20Product.html vs /prod/My Product.html
              David Hubbard
              CIO
              Miva
              [email protected]
              http://www.miva.com

              Comment


                #8
                Thanks for the heads up David.

                So far, it looks like a + (plus) is being rendered in the links.

                Scott
                Need to offer Shipping Insurance?
                Interactive Design Solutions https://www.myids.net
                MivaMerchant Business Partner | Certified MivaMerchant Web Developer
                Competitive Rates, Custom Modules and Integrations, Store Integration
                AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
                My T-shirt Collection is mostly MivaCon T-shirts!!

                Comment

                Working...
                X