301 Redirect from HTML to ASPX

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
heinscott
Captain (CAPT)
Captain (CAPT)
Posts: 375
Joined: Thu May 01, 2008 12:37 pm

301 Redirect from HTML to ASPX

Post by heinscott » Wed Aug 20, 2008 2:49 pm

Hello. I was wondering if anyone could help me...
I am trying to take my existing site, which is all static HTML pages, and somehow do a permenant redirect to our new Able Commerce site's pages. Now, the problem I am having is this... I can't do any kind of redirection from HTML via code, to let Google/Yahoo/etc. know that this is a permenant redirect, so, it seems that my only option is to redirect via IIS. The problem? I have a couple thousand URL's that I would have to manually touch one at a time. Does anyone know of a better way to accomplish the redirect?
Any help would be much appreciated!

Scott

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Re: 301 Redirect from HTML to ASPX

Post by Shopping Cart Admin » Wed Aug 20, 2008 3:17 pm

Hello Scott,

The following solution from Neal is available to do just what you want.

http://sitedirector.nc-software.com/
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

meer2005
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Feb 09, 2005 2:00 pm

Re: 301 Redirect from HTML to ASPX

Post by meer2005 » Wed Aug 20, 2008 3:18 pm

Im going to use this for old .aspx to new .aspx... : http://www.helicontech.com/isapi_rewrite/

The version 3 is pretty easy to use and the lite version is free.

The rewrite rule is something like this in hte httpd.config file:

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.54

RewriteRule /old-url.aspx http://site.com/new-url.aspx.aspx [I,O,RP,L]
RewriteRule /old-url2.aspx http://site.com/new-url2.aspx.aspx [I,O,RP,L]
RewriteRule /old-url3.aspx http://site.com/new-url3.aspx.aspx [I,O,RP,L]
RewriteRule /old-url4.aspx http://site.com/new-url4.aspx.aspx [I,O,RP,L]


It works like .htaccess file in apache

User avatar
heinscott
Captain (CAPT)
Captain (CAPT)
Posts: 375
Joined: Thu May 01, 2008 12:37 pm

Re: 301 Redirect from HTML to ASPX

Post by heinscott » Fri Aug 22, 2008 7:33 am

Thank you both for your help! After looking at both of these solutions, I was able to cobble something together that I think will work for us. Basically, we are having IIS forward all 404 errors to a custom page, error.aspx, which contains the logic to change from the old URL to the new. We checked this in a few SEO redirect checkers, which appear to confirm that the the proper "301 Permanently Moved" response header is recieved.
Does anyone forsee any problems doing redirect via this method? I don't know how IIS does the 404 forward, and how that will appear to google.
Thanks for your help!

Scott

Robbie@FireFold
Commodore (COMO)
Commodore (COMO)
Posts: 433
Joined: Wed May 28, 2008 9:42 am
Location: Concord, NC
Contact:

Re: 301 Redirect from HTML to ASPX

Post by Robbie@FireFold » Fri Aug 22, 2008 8:14 am

Thanks for this. I am going to have a few problems like this in the near future.
Robbie Hodge
General Manager
Robbie@FireFold.com
http://www.FireFold.com

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: 301 Redirect from HTML to ASPX

Post by jmestep » Fri Aug 22, 2008 8:42 am

From what I understand, Google gets the redirect type from the response header, so you should be OK.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Re: 301 Redirect from HTML to ASPX

Post by kastnerd » Wed Dec 10, 2008 9:03 pm

I am going from php to able.
What is the best way to setup 301's
Google indexes about 600 pages (using site:url test in google). Some of them are duplicates caused by my current sites way of displaying links.
I would like to redirect all the old pages to the new pages. I might only have 300 new pages, but id like to redirect all old pages to a new page.

Also people have posted links to my site on there blog or on message boards or on my dealers sites. I would like if it these redirected for the user so they still get the content.

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: 301 Redirect from HTML to ASPX

Post by Brewhaus » Thu Feb 19, 2009 4:03 pm

The following solution from Neal is available to do just what you want.

http://sitedirector.nc-software.com/
Is anyone familiar with this software (Mike?)? We are getting an error when trying to install this software.
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

dadkind
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 105
Joined: Thu Jan 22, 2009 3:32 pm

Re: 301 Redirect from HTML to ASPX

Post by dadkind » Fri Feb 20, 2009 11:30 pm

We use this on our company site and it works very well.

With a bit of coding you can set things up so that all your HTMLs are redirected to a handler which will look the new URL, issues the 301 and redirects the user to the new page.

That way you only need to write one rule that covers all your existing product pages and one handler.

A very cool tool!

Let me know if you need more info on this.

-tomas

meer2005 wrote:Im going to use this for old .aspx to new .aspx... : http://www.helicontech.com/isapi_rewrite/

The version 3 is pretty easy to use and the lite version is free.

The rewrite rule is something like this in hte httpd.config file:

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.54

RewriteRule /old-url.aspx http://site.com/new-url.aspx.aspx [I,O,RP,L]
RewriteRule /old-url2.aspx http://site.com/new-url2.aspx.aspx [I,O,RP,L]
RewriteRule /old-url3.aspx http://site.com/new-url3.aspx.aspx [I,O,RP,L]
RewriteRule /old-url4.aspx http://site.com/new-url4.aspx.aspx [I,O,RP,L]


It works like .htaccess file in apache

Post Reply