<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=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.yiv307987876msonormal, li.yiv307987876msonormal, div.yiv307987876msonormal
        {mso-style-name:yiv307987876msonormal;
        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";}
p.yiv307987876msochpdefault, li.yiv307987876msochpdefault, div.yiv307987876msochpdefault
        {mso-style-name:yiv307987876msochpdefault;
        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";}
span.yiv307987876msohyperlink
        {mso-style-name:yiv307987876msohyperlink;}
span.yiv307987876msohyperlinkfollowed
        {mso-style-name:yiv307987876msohyperlinkfollowed;}
span.yiv307987876emailstyle17
        {mso-style-name:yiv307987876emailstyle17;}
p.yiv307987876msonormal1, li.yiv307987876msonormal1, div.yiv307987876msonormal1
        {mso-style-name:yiv307987876msonormal1;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Arial","sans-serif";}
span.yiv307987876msohyperlink1
        {mso-style-name:yiv307987876msohyperlink1;
        color:blue;
        text-decoration:underline;}
span.yiv307987876msohyperlinkfollowed1
        {mso-style-name:yiv307987876msohyperlinkfollowed1;
        color:purple;
        text-decoration:underline;}
span.yiv307987876emailstyle171
        {mso-style-name:yiv307987876emailstyle171;
        font-family:"Arial","sans-serif";
        color:windowtext;}
p.yiv307987876msochpdefault1, li.yiv307987876msochpdefault1, div.yiv307987876msochpdefault1
        {mso-style-name:yiv307987876msochpdefault1;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Arial","sans-serif";}
span.EmailStyle27
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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 lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Yes, I used mod-rewrite with rewrite engine on. I redirected everything from abc.com/doc1 /doc 2 etc. to just xyz.com. However, that was not that I was supposed to do. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>There are other items on the server that need to be access via a web browser. This means that I can not redirect everything but only certain things. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Someone told me I should look into the following:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>RewriteCond %{REQUEST_URI} ^<u><span style='color:blue'><a href="https://abc.com/docs/(">https://abc.com/docs/(</a></span></u>[A-Z]\d{5,6})$  [NC]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>RewriteRule .* <u><span style='color:blue'><a href="https://xyz.com/cgi-bin/private/DocDB/ShowDocument?docid=$1">https://xyz.com/cgi-bin/private/DocDB/ShowDocument?docid=$1</a></span></u> [L]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>However, I am not too familiar with RewriteCond and was looking for more guidance on that.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks again.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Junaid<o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> sgvlug-bounces@sgvlug.net [mailto:sgvlug-bounces@sgvlug.net] <b>On Behalf Of </b>Bryan Backer<br><b>Sent:</b> Wednesday, April 18, 2012 12:26 PM<br><b>To:</b> SGVLUG Discussion List.<br><b>Subject:</b> Re: [SGVLUG] Apache Help-Rewrite Cond?<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0><tr><td valign=top style='padding:0in 0in 0in 0in'><div id=yiv307987876><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0><tr><td style='padding:0in 0in 0in 0in'><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>You mention rewriting but how did you apply that?<br>(what do your rules look like?) <br>I assume the mod_rewrite rule you did just redirected all abc.com traffic to<br><a href="http://www.xyz.com/">http://www.xyz.com/</a><br><br>I assume that changing the DNS entries for the <a href="http://www.abc.com">www.abc.com</a> host<br>to aim at <a href="http://www.xyz.com">www.xyz.com</a> is not an option in that the <a href="http://www.abc.com">www.abc.com</a><br>server is still used for non port80 traffic?<br><br>If so using mod_rewrite but with a more sophisticated<br>URL rewrite so you leave the last part of the URI intact.<br><br>I will look for references or examples that do what you're seeking<br>(assuming I understand correctly). I'm starting at<br></span><span style='font-size:10.0pt;font-family:"Courier New"'><a href="http://httpd.apache.org/docs/2.0/misc/rewriteguide.html">http://httpd.apache.org/docs/2.0/misc/rewriteguide.html</a><br><br></span><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>--- On <b>Wed, 4/18/12, Junaid A <i>&lt;<a href="mailto:junaidjan@yahoo.com">junaidjan@yahoo.com</a>&gt;</i></b> wrote:<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><br>From: Junaid A &lt;<a href="mailto:junaidjan@yahoo.com">junaidjan@yahoo.com</a>&gt;<br>Subject: [SGVLUG] Apache Help-Rewrite Cond?<br>To: &quot;SGVLUG Discussion List.&quot; &lt;<a href="mailto:sgvlug@sgvlug.net">sgvlug@sgvlug.net</a>&gt;<br>Date: Wednesday, April 18, 2012, 11:35 AM<o:p></o:p></span></p><div id=yiv307987876><div><div><p class=yiv307987876msonormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Hi everyone,<o:p></o:p></span></p><p class=yiv307987876msonormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;<o:p></o:p></span></p><p class=yiv307987876msonormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Is there an Apache Guru amongst us? I haven’t used Apache for a long time, especially on Unix. (Running Apache 2.0 on SunOS 5.10)<o:p></o:p></span></p><p class=yiv307987876msonormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;<o:p></o:p></span></p><p class=yiv307987876msonormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I have to redirect specific documents on our old server to a new server. I already tried a mod rewrite and redirected everyone accessing the old server to go to the main page on the new server. However, that is not what I was supposed to do. <o:p></o:p></span></p><p class=yiv307987876msonormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;<o:p></o:p></span></p><p class=yiv307987876msonormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I need help/guidance so that I may redirect <a href="http://www.abc.com/doc123" target="_blank">www.abc.com/doc123</a> to server <a href="http://www.xyz.com/doc123" target="_blank">www.xyz.com/doc123</a> and so on. <o:p></o:p></span></p><p class=yiv307987876msonormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;<o:p></o:p></span></p><p class=yiv307987876msonormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Is there someone who can help me by at least pointing me to a good forum/site that may guide me as to how I may accomplish this task?<o:p></o:p></span></p><p class=yiv307987876msonormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;<o:p></o:p></span></p><p class=yiv307987876msonormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Thanks in advance.<o:p></o:p></span></p><p class=yiv307987876msonormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;<o:p></o:p></span></p><p class=yiv307987876msonormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Junaid<o:p></o:p></span></p></div></div></div></td></tr></table></div></td></tr></table><div class=MsoNormal align=center style='text-align:center'><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'><hr size=1 width="100%" noshade style='color:#A0A0A0' align=center></span></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>No virus found in this message.<br>Checked by AVG - <a href="http://www.avg.com">www.avg.com</a><br>Version: 2012.0.1913 / Virus Database: 2411/4944 - Release Date: 04/18/12<o:p></o:p></p></div></body></html>