Volusion default to root redirect

July 9, 2021 . 1 MIN READ

I need to 301 redirect for http://www.ndstorefixture.com/Default.asp so that it forwards to http://www.ndstorefixture.com ? I tried from Settings > Maintenance and click Manage 301 Redirects. but it does not work. how can I achieve this?

Just a moment…

I set Default.asp => /

301 redirects only work for invalid URLs. They are designed to redirect a URl that would have a 404 page to another existing page. Now, we did have an old script I can try installing here that should remove the /default.asp from the homepage, just a second here while I try to locate it.

Alright, I was able to find the script here and we can try it out. I will need to verify a security question firs to install it: Me: its my client account

I can provide the code for you here in our chat. As a note, our support are not trained in custom coding, so we would be unable to troubleshoot the script if it didnt work out. You would want to install the following in the template.html file (I would put it at the <body> tag) via Design > File Editor:

<script type=”text/javascript”>
$(function() {
(function() {
var CurPage = location.href.toLowerCase();
if (CurPage.indexOf(‘default.asp’) > -1 && CurPage.indexOf(‘giftcert’) === -1) {
window.location = location.protocol + ‘//’ + location.host;
};
})();
});
</script>

Leave a Reply

Your email address will not be published. Required fields are marked *