Page 1 of 1
301 Redirect from HTML to ASPX
Posted: Wed Aug 20, 2008 2:49 pm
by heinscott
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
Re: 301 Redirect from HTML to ASPX
Posted: Wed Aug 20, 2008 3:17 pm
by Shopping Cart Admin
Hello Scott,
The following solution from Neal is available to do just what you want.
http://sitedirector.nc-software.com/
Re: 301 Redirect from HTML to ASPX
Posted: Wed Aug 20, 2008 3:18 pm
by meer2005
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
Re: 301 Redirect from HTML to ASPX
Posted: Fri Aug 22, 2008 7:33 am
by heinscott
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
Re: 301 Redirect from HTML to ASPX
Posted: Fri Aug 22, 2008 8:14 am
by Robbie@FireFold
Thanks for this. I am going to have a few problems like this in the near future.
Re: 301 Redirect from HTML to ASPX
Posted: Fri Aug 22, 2008 8:42 am
by jmestep
From what I understand, Google gets the redirect type from the response header, so you should be OK.
Re: 301 Redirect from HTML to ASPX
Posted: Wed Dec 10, 2008 9:03 pm
by kastnerd
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.
Re: 301 Redirect from HTML to ASPX
Posted: Thu Feb 19, 2009 4:03 pm
by Brewhaus
Is anyone familiar with this software (Mike?)? We are getting an error when trying to install this software.
Re: 301 Redirect from HTML to ASPX
Posted: Fri Feb 20, 2009 11:30 pm
by dadkind
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