We have old 301 Redirects would like to remove from the .htaccess file on our server. My question is does MIVA create any of these? I noticed that we are using the URIs tab in our products to set the path. I do not want to erase anything in the .htaccess file that could break our site.
Announcement
Collapse
No announcement yet.
301 Redirect Question
Collapse
X
-
If the statements are actual "Redirect" or "RedirectPermanent" statements, then there's a high likelihood that you can attach those as additional URI's to the target products, categories, etc. in the store's URI Management, with the option set to redirect 301 to the canonical URL; that's if you still care about having the redirect at all. They would not have been put there by the software.
If the redirection is using Rewrite statements, and/or involves query strings, those may not be something URI management can handle; we'd have to take a look in that case.
-
So, if we have old redirects that we want to move into URI Management, we go to URI Management >> URIs, click the Add URI(s) button and add them that way? Even thought they do not currently exist in Miva? For example, you can add an old category, such as /category/old-page.html as the URI and destination is the new category with the redirect that you want?
I feel like I'm flying blind. I really liked being able to manage it all from the htaccess file of my own creation ... but I know that is not easiest for all.
JamieJamie Donaldson
JSDVS Web Design / Development
Web Design | Web Development | E-commerce Design & Integration
Comment
-
Correct, so if /category/old-page.html was what used to point to the no longer in existence 'old-page' category, and now the category 'new-page' has replaced it, you probably had something like:
RedirectPermanent /category/old-page.html http://domain.com/category/new-page.html
Now, you can instead go to the new-page category in the store, URI's, add /category/old-page.html as a 301-redirect to canonical URL, and if anyone hits the old link, they'll be redirected just like htaccess would have done.
Keep in mind that every entry in a htaccess file has to be compared to a new request, for every single request, unless a rule is hit that instructs the server to stop further processing. The more redirects and rewrites that are present, the more work the web server has to do on every request, so having a Redirect or Rewrite whose only purpose is to 301 an old URL that gets requested once a month, adds performance impact for the other ten million requests per month that do not need redirection. Getting it out of there and into URI management will eliminate that issue, or at least some of it if all but necessary rules have been removed.
Comment
-
Originally posted by ILoveHostasaurus View PostCorrect, so if /category/old-page.html was what used to point to the no longer in existence 'old-page' category, and now the category 'new-page' has replaced it, you probably had something like:
RedirectPermanent /category/old-page.html http://domain.com/category/new-page.html
Now, you can instead go to the new-page category in the store, URI's, add /category/old-page.html as a 301-redirect to canonical URL, and if anyone hits the old link, they'll be redirected just like htaccess would have done.
Keep in mind that every entry in a htaccess file has to be compared to a new request, for every single request, unless a rule is hit that instructs the server to stop further processing. The more redirects and rewrites that are present, the more work the web server has to do on every request, so having a Redirect or Rewrite whose only purpose is to 301 an old URL that gets requested once a month, adds performance impact for the other ten million requests per month that do not need redirection. Getting it out of there and into URI management will eliminate that issue, or at least some of it if all but necessary rules have been removed.
Understood about the server requests.
Thanks!
Jamie
Jamie Donaldson
JSDVS Web Design / Development
Web Design | Web Development | E-commerce Design & Integration
Comment
-
You can do it in either location, but I find it easier at the new cat/prod level for a one-off, or the central area for bulk adding if you have them all handy. Under URI management you can + to add a new one, type it in, select the store, set the destination type and code, pick 301. At the new cat level, you'd click +, select 301, type the URI.
- 1 like
Comment
-
Originally posted by ILoveHostasaurus View PostYou can do it in either location, but I find it easier at the new cat/prod level for a one-off, or the central area for bulk adding if you have them all handy. Under URI management you can + to add a new one, type it in, select the store, set the destination type and code, pick 301. At the new cat level, you'd click +, select 301, type the URI.
JamieJamie Donaldson
JSDVS Web Design / Development
Web Design | Web Development | E-commerce Design & Integration
Comment
-
What's the best practice for 301's when you eliminate a child category? For example with facets I no longer need many child categories. Should they be redirected to the parent, which is where the products now reside?Highly caffeinated
http://www.coffeehouseexpress.com
Comment
-
I must be doing something wrong because if I try to use the URI Management to redirect a category (or product) that is not longer available, I still wind up having a live long-style link that the spiders are finding. How do I prevent that from happening? The category (or product) must remain live for the URI Management to function. But it no longer has a canonical URI.Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Originally posted by lesliekirk View PostI must be doing something wrong because if I try to use the URI Management to redirect a category (or product) that is not longer available, I still wind up having a live long-style link that the spiders are finding. How do I prevent that from happening? The category (or product) must remain live for the URI Management to function. But it no longer has a canonical URI.Highly caffeinated
http://www.coffeehouseexpress.com
Comment
-
Originally posted by Jim Cockerham View Post
I'm not 100% sure on this because I am just doing this today but I can tell you that I set all of my old child categories to inactive and then 301 them to their parent category and it seems to be working fine. I don't think you need to keep them active.Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
Comment