[development] Can .htaccess discard part of a path?
sfreach at gmail.com
Tue Nov 10 16:26:28 UTC 2009
I'm assuming this is a leftover from the moms team site? The incoming
requests are coming from the fact that Google appears to have lots of
these links in its index still to these URLs and sites which still link
to these URLs.
Instead of a rewrite, I'd suggest a a response code 301 redirect. This
will be more Google friendly.
look in the default .htaccess file for the (commented out by default)
lines that deal with www. redirection (ie, you always want people to see
"www" or never do, regardless of how they access the site.) Using those
patterns should help show you how to redirect to the same content but
without the "cgi-bin/printOriginal.pl&file=/"
Nancy Wichmann wrote:
> I am getting lots of requests like this:
> The file argument is a valid page on our old site and is itself
> redirected with a ReWriteRule in .htaccess. However,
> cgi-bin/printOriginal.pl does not exist and I have no idea what it was
> supposed to do (well, I can guess print the page). We get lots of
> these requests for different pages. I have tried a simple rewrite rule
> and a URL alias to prevent the 404 processing, but neither has fixed it.
> Is it possible to design a rewriterule that essentially discards the
> "cgi-bin/printOriginal.pl" and just serves up the requested page
> (well, after its own rewrite rule has worked)? So this would become
> Nancy E. Wichmann, PMP
> Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L.
> King, Jr.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development