Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Apache error trapping or RewriteRule?


Micke

Recommended Posts

Posted

Hi All you great coders!

We had our site on a windows server before we decided to move to osCommerce and an Apache server. Google has indexed thousands of pages on our old windows site and when you click any of those results you get to this Apache message:

This server does not support ASP or ASP.NET
That's not how we want it... We want them to come to a live page on the Apache instead, like index.php

Google lists this error as a 403 in "sitemaps".

So I put this into the .htaccess:

ErrorDocument 400 /index.php

ErrorDocument 401 /index.php

ErrorDocument 403 /index.php

ErrorDocument 404 /index.php

ErrorDocument 500 /index.php

Still does'nt take care of the .asp message above. Can I put in another rewrite rule in .htaccess that will save me or is there anoter way to take care of .asp?

//Micke

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...