6000 errors in log. Mostly 404

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

6000 errors in log. Mostly 404

Post by William_firefold » Fri Oct 16, 2009 5:57 am

Is there a way to make it stop logging errors of the 404 variety?
For some reason, someone or something is visiting addresses from our old BVcommerce site, and its causing mass 404 errors on our Able site.
Should we try to set up 301s for all the addresses we are getting errors for, or would hiding the 404s be ok?

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

Re: 6000 errors in log. Mostly 404

Post by Shopping Cart Admin » Tue Oct 20, 2009 12:04 pm

Hello William,

I'd suggest setting up 301's for the old addresses.
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

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

Re: 6000 errors in log. Mostly 404

Post by kastnerd » Tue Oct 20, 2009 12:47 pm

Defiantly, If you set 301 errors, the user would get directed to the correct page and any bot's would update it with the new page.
You dont want to ignore 404's.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: 6000 errors in log. Mostly 404

Post by mazhar » Wed Oct 21, 2009 2:35 am


Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: 6000 errors in log. Mostly 404

Post by Mike718NY » Wed Oct 21, 2009 9:12 am

I have about 300 "static" pages from the old site that are going to become
dynamically generated pages when the website is converted to AC7.
Here is an example of one of the 300 pages:

www.OldWebsite.com/store/Bracelets/Bracelets.aspx

But for the new AC7 site, the Categories are dynamically generated
and are not static pages, example:

www.NewWebsite/Bracelets-C11.aspx

Do I need to click a Category link from the new AC7 website
to "get" that link and use that link for the value in "redirectLocation" :

private void Page_Init(object sender, System.EventArgs e)
{
string redirectLocation = "http://www.NewWebsite/Bracelets-C11.aspx";
......

Another problem. The old website was coded in VB.NET.
The code wiki.ablecommerce requires C#. Is there a way around this?

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: 6000 errors in log. Mostly 404

Post by Mike718NY » Thu Oct 22, 2009 7:23 am

Could either one these options be used for 301 redirects:

IIS Redirect

In internet services manager, right click on the file or folder you wish to redirect
Select the radio titled "a redirection to a URL".
Enter the redirection page
Check "The exact url entered above" and the "A permanent redirection for this resource"
Click on 'Apply'

Or . .

ASP .NET Redirect

<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.new-url.com");
}
</script>

User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Re: 6000 errors in log. Mostly 404

Post by William_firefold » Fri Oct 23, 2009 6:28 am

you can do that, and it would work as a global 301, but it cant address each page individually.
We had a program which was a rewrite mod for IIS which acted like an htaccess file, and allowed us to have thousands of individual 301 redirects, specific to each product. We assumed that after 6 months of having those on the server, that search engines would have remapped themselves by now. For some reason they did not, and we keep getting 404 errors by the truckload.

Post Reply