301 Redirect from HTML to ASPX
301 Redirect from HTML to ASPX
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
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
- Shopping Cart Admin
- AbleCommerce Admin
- Posts: 3055
- Joined: Mon Dec 01, 2003 8:41 pm
- Location: Vancouver, WA
- Contact:
Re: 301 Redirect from HTML to ASPX
Hello Scott,
The following solution from Neal is available to do just what you want.
http://sitedirector.nc-software.com/
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
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
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
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
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
-
- Commodore (COMO)
- Posts: 433
- Joined: Wed May 28, 2008 9:42 am
- Location: Concord, NC
- Contact:
Re: 301 Redirect from HTML to ASPX
Thanks for this. I am going to have a few problems like this in the near future.
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: 301 Redirect from HTML to ASPX
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
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
Re: 301 Redirect from HTML to ASPX
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.
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
Is anyone familiar with this software (Mike?)? We are getting an error when trying to install this software.The following solution from Neal is available to do just what you want.
http://sitedirector.nc-software.com/
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot
Brewhaus (America) Inc.
Hot Sauce Depot
Re: 301 Redirect from HTML to ASPX
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
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