Announcement

Collapse
No announcement yet.

Why won't my LOGN & ORHL buttons work

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

    Why won't my LOGN & ORHL buttons work

    Why does my LOGN & ORHL buttons take me to the page when clicked on but it says:
    We're sorry but it appears that the "LOGN" category is not available at this time.
    Please click here to return to our home page.

    I'm not sure what has to be set up and where?

    This is a dev store of our live store. I'm not a developer, so please have sympathy.



    #2
    Re: Why won't my LOGN & ORHL buttons work

    Looks like you have some custom code in your .htaccess file that is telling Miva that when it finds /XXXX.html map it to a category page.

    Have you made any changes to your .htacces file recently?
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Why won't my LOGN & ORHL buttons work

      I've pasted below, my htaccess file. I did add a few lines to the bottom the other day but commented them out the other day when what i was trying to do did not work. Here's the problem... I purchased a dev site to build a ready theme so my original site would be mobile friendly. That dev site went live about a week ago. I noticed recently that my category pages on the new site were no longer in the root directory. ie http://costumeshopper.com/halloween-hat.html
      Instead the new site, I guess by default, put them in a sub category called 'category' So the new URL was http://costumeshopper.com/category/halloween-hat.html

      Problem with that is that the search engines would have to reindex all my category pages and I'd lose any link juice that I've built up over the years. So I originally tried to fix this by trying to redirect my category files to the root in htaccess. I couldn't figure that out, so I just commented out the change I tried to make and I've pasted that file below.

      Also, I did figure out that if I went to my SEO page and changed the category identifier to custom and left the box next to it blank, my category pages were now in the root directory, so everything, I thought, was good. But I soon discovered that the LOGN & ORHL buttons in the header were no longer working....
      Any help on this issue is greatly appreciated.
      Here is the htaccess file:

      #Gzip
      <ifmodule mod_deflate.c>
      AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
      </ifmodule>
      #End Gzip


      <filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$" >
      Header set Expires "access plus 6 months"
      </filesMatch>


      ErrorDocument 404 /NTFD.html


      RewriteRule ^Merchant2(.*) http://www.costumeshopper.com/mm5/$1 [R=301,L]


      RewriteRule ^mardi-hat.html$ http://www.costumeshopper.com/mardigrashats.html [R=301,L]


      ### Begin - Inserted by Miva Merchant


      DirectoryIndex /mm5/merchant.mvc


      RewriteEngine On


      RewriteRule ^mm5/admin.mvc? - [QSA,L]


      RewriteCond %{REQUEST_FILENAME} !-s
      RewriteRule ^prods/([^/.]+).html$ /mm5/merchant.mvc?Screen=PROD&Product_code=$1 [QSA,L]


      RewriteCond %{REQUEST_FILENAME} !-s
      RewriteRule ^([^/.]+).html$ /mm5/merchant.mvc?Screen=CTGY&Category_code=$1 [QSA,L]


      RewriteCond %{REQUEST_FILENAME} !-s
      RewriteRule ^([^/]+)/([^/.]+).html$ /mm5/merchant.mvc?Screen=PROD&Category_code=$1&Product_ code=$2 [QSA,L]


      RewriteCond %{REQUEST_FILENAME} !-s
      RewriteRule ^([^/.]+).html$ /mm5/merchant.mvc?Screen=$1 [QSA,L]


      ### End - Inserted by Miva Merchant


      #--- Start Redirect Code
      RewriteEngine On


      # Handles regular requests
      RewriteCond %{REQUEST_FILENAME} index.htm [NC]
      RewriteCond %{SERVER_PORT} 80
      RewriteRule ^(.*)$ http://www.costumeshopper.com/sfnt.html [R=301,L]


      ### RewriteEngine On
      ### Redirect 301 /index.htm htpp://www.costumeshopper.com/sfnt.html


      RewriteRule ^prods/(.*)/(.*)\.html http://www.costumeshopper.com/ [R=301,L]


      ###Support ticket: SAF-603-22575==BEGIN - Blocking baiduspider, YodaoBot , JikeSpider, Sogou web spider, sosospider and SISTRIX Crawler


      Order Allow,Deny
      Allow from all
      Deny from 180.76.
      Deny from 124.115.
      Deny from 1.202.
      Deny from 123.151.
      Deny from 123.125.
      Deny from 61.135.
      Deny from 220.181.
      Deny from 218.30.
      Deny from 5.9.112.180
      Deny from 199.21.


      ###Support ticket: SAF-603-22575==END - Blocking baiduspider, YodaoBot , JikeSpider, Sogou web spider, sosospider and SISTRIX Crawler

      Comment


        #4
        Re: Why won't my LOGN &amp; ORHL buttons work

        This line is your issue:

        Code:
        RewriteCond %{REQUEST_FILENAME} !-s
        RewriteRule ^([^/.]+).html$ /mm5/merchant.mvc?Screen=CTGY&Category_code=$1 [QSA,L]
        You telling the server anytime you see /wildcard.html treat wildcard as the category code and sent it to the category page. My guess is on your old site you were using Ultimate SEO links or toolkits TKSL which allows you to do generic links like this without the product / category identifier.

        I would look at what you had setup on your old site and mimic that so your URL structure does not change.
        Brennan Heyde
        VP Product
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment


          #5
          Re: Why won't my LOGN &amp; ORHL buttons work

          Thank you for looking at the htaccess file. When you say: I would look at what you had setup on your old site and mimic that so your URL structure does not change.

          What specifically am I looking tp mimicc and where do I find it? Yes I believe we used toolkits on all of our sites. We have 5 and we are converting all to Readythemes. I'm not a developer, so I'm not sure what you mean by look what I had set up on old site. Our old site is still accessible, but not sure where I should look to duplicate this. do you mean duplicate the htaccess file? I wouldn't think so, since the one you looked at is pretty much the same.
          If I cannot get it to work, I guess I can just remove the login feature. Not my first choice, but if I cannot get this to work right, I may have no choice.

          Mike


          Comment

          Working...
          X