<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Arial","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Wow, how did you know about MomsTeam (now YouthSportsParents)?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>I put this in there already &nbsp;&nbsp;&nbsp;</span><span
style='font-size:12.0pt;font-family:"Courier New";color:black'>RewriteRule
^cgi-bin/printOriginal.pl/$ http://www.youthsportsparents.com [R=301,L]</span><span
style='font-size:12.0pt;font-family:"Courier New";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>And I am still seeing these come through to the Drupal log.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>There might be a clue in RewriteRule </span><span
style='font-size:12.0pt;font-family:"Courier New";color:black'>^alpha/sports/(.*)
http://www.youthsportsparents.com/sports/$1 [R=301,L]</span><span
style='font-size:12.0pt;font-family:"Arial","sans-serif";color:#1F497D'> if I
really understood regular [sic] expressions.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div>

<p class=MsoNormal><span style='font-size:14.0pt;font-family:"Comic Sans MS";
color:fuchsia'>Nancy E. Wichmann, PMP </span><span style='color:#1F497D'>&nbsp;<o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:#1F497D'>Injustice anywhere is a threat to justice everywhere. -- Dr.
Martin L. King, Jr</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>.</span><span style='color:#1F497D'><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'> development-bounces@drupal.org
[mailto:development-bounces@drupal.org] <b>On Behalf Of </b>Seth Freach<br>
<b>Sent:</b> Tuesday, November 10, 2009 11:26 AM<br>
<b>To:</b> development@drupal.org<br>
<b>Subject:</b> Re: [development] Can .htaccess discard part of a path?<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Nancy,<br>
<br>
I'm assuming this is a leftover from the moms team site?&nbsp; 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.<br>
<br>
Instead of a rewrite, I'd suggest a a response code 301 redirect.&nbsp; This
will be more Google friendly.<br>
<br>
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
&quot;www&quot; or never do, regardless of how they access the site.)&nbsp;
Using those patterns should help show you how to redirect to the same content
but without the &quot;<span style='font-family:"Courier New"'>cgi-bin/printOriginal.pl&amp;file=/</span>&quot;<br>
<br>
Seth<br>
<br>
<br>
Nancy Wichmann wrote: <o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I
am getting lots of requests like this:</span><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:5.0pt'><span style='font-size:12.0pt;
font-family:"Courier New"'><a
href="http://www.example.com/index.php?q=cgi-bin/printOriginal.pl&amp;file=/alpha/beta/gamma/rage_prevention.shtml">http://www.example.com/index.php?q=cgi-bin/printOriginal.pl&amp;file=/alpha/beta/gamma/rage_prevention.shtml</a></span><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:5.0pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'>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.</span><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:5.0pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'>Is it possible to design a rewriterule that
essentially discards the &quot;cgi-bin/printOriginal.pl&quot; and just serves
up the requested page (well, after its own rewrite rule has worked)? So this
would become</span><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:5.0pt'><span style='font-size:12.0pt;
font-family:"Courier New"'><a
href="http://www.example.com/index.php/alpha/beta/gamma/rage_prevention.shtml">http://www.example.com/index.php/alpha/beta/gamma/rage_prevention.shtml</a></span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'>&nbsp;</span><o:p></o:p></p>

<div>

<p class=MsoNormal><span style='font-size:14.0pt;font-family:"Comic Sans MS";
color:fuchsia'>Nancy E. Wichmann, PMP </span><o:p></o:p></p>

</div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>Injustice
anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr</span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>.</span><o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:windowtext'>No
virus found in this incoming message.<br>
Checked by AVG - www.avg.com<br>
Version: 9.0.704 / Virus Database: 270.14.59/2494 - Release Date: 11/10/09
02:38:00</span><span style='color:windowtext'><o:p></o:p></span></p>

</div>

</body>

</html>