I've recently converted a SoftCart store to ShopSite. Search engines and former visitors are looking for the old cart's URL, which is like this:
www.domainname.com/cgi-local/SoftCart.e ... e.html?etc.
How can I redirect this to the following?
www.domainname.com/filename.html
The old URL results in either a browser 404 (MSIE) or Apache's internal 404 (Firefox), and some of my attempted fixes (below) give a server error.
Our hosting service (Verio, where the old store was), assures me that client requests are sent to .htaccess before anything else is processed, but things don't seem to perform that way. If I change "cgi-local" to "xcgi-local" or "anything-else", .htaccess lines are handled. But not if the string is "cgi-local" or "cgi-bin".
I've tried following kludges, with no success:
* Putting an .htaccess file in cgi-local and for that matter cgi-bin (the one in bin gets accessed if ...bin.. is requested, the one in cgi-local does not work similarly. Neither will run a redirect, though.)
* Creating directories called /cgi-local/SoftCart.exe/ under htdocs, with an .htaccess or dummy .html files to redirect.
* Eliminating the cgi-local directory (hoping to create a 404). It gives a 404 but our root .htaccess doesn't catch it.
* Thought of trying to create a dummy program called SoftCart.exe and putting it in /cgi-local/, but even if I could do that, Verio says it would not be allowed. I'm limited to .pl and .php (which if I could get the old URL to run, I wouldn't need, right?).
I've also tried using .htaccess, which I would think should be the right way to do this.
Verio says to use .htaccess in combo with a script and that "there are plenty of scripts out there" but Support is unwilling to elaborate. Have tried the following in .htaccess:
RedirectPermanent /cgi-local/SoftCart.exe/filename.html http://www.domainname.com/filename.html
This works (when I create a hooha directory)
RedirectMatch \/hooha\/SoftCart\.exe\/(.*) http://www.domainname.com/$1
But not this...
RedirectMatch \/cgi-local\/SoftCart\.exe\/(.*) http://www.domainname.com/$1
I've also tried a few mod rewrite lines, but that's over my head and if it's the key, I don't quite follow it. I can confirm that RewriteEngine is on. I can't confirm that Verio supports it. (They've said that they don't even formally support .htaccess!)
I know, there's one other increasingly tempting solution -- find a more supportive provider -- but this issue will rapidly decrease in importance as old visitors either adapt or get discouraged. Mainly, I figure those who convert in the future might benefit from the discussion.