thirtyottsixx Posted June 15, 2016 Share Posted June 15, 2016 I have an ongoing problem with my site where intermittently url's like https://help.blog.blog.blog.domain.com are getting stored in my store file. I contacted tech support and they said the cause was my site getting spidered under weird domain names. They made a modification to the htaccess file, which seems to fix the issue except when the URL gets cached as https://. My site does not have an SSL so anything https request breaks before it gets to htaccess. To get rid of the problem temporarily, I simply empty the cache and the URL's on the category menu are fixed. But they inevitably go back to being written to something that breaks the link within 24 hours or so. This doesn't effect any of the other site links, only the category menu. The code being used to output the category menu is: <li class="main_product_category"> <a href="{$BRANCH.url}" title="{$BRANCH.name}">{$BRANCH.name}</a> {if isset($BRANCH.children)} <ul id="child_menu">{$BRANCH.children}</ul> {/if} </li> Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted June 15, 2016 Share Posted June 15, 2016 I've seen this a lot but never understood how these wierd domains come about. This is a good solution and can help improve SEO... www.besthostratings.com/articles/force-www-htaccess.html I opened a GitHub issue as this needs a fix. https://github.com/cubecart/v6/issues/1134 Quote Link to comment Share on other sites More sharing options...
thirtyottsixx Posted June 15, 2016 Author Share Posted June 15, 2016 That rewrite is already in place, you actually gave it to me through support awhile back. The problem is sometimes these bad urls are cached as https. I do not have a security certificate and the htaccess workaround doesn't help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.