<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks, but using document root gives me a 505 Internal server error.<div><br></div><div>Let me explain better:</div><div>I've just inherited this site, so I'm not sure why it was set up this way, but the full Drupal site is in the folder: /bv (DocumentRoot /home/mysite/public_html/bv). I currently have the following rewrite in the .htaccess file within the /bv folder</div><div><div>&nbsp;&nbsp; RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC]</div><div>&nbsp;&nbsp; RewriteRule ^(.*)$ <a href="http://www">http://www</a>. mysite.com/bv/$1 [L,R=301]</div></div><div>so when I browse to the home page, <a href="http://www.mysite.com">www.mysite.com</a>, I'm redirected to <a href="http://www.mysite.com/bv">www.mysite.com/bv</a> &nbsp;OR</div><div>mysite.com &nbsp;I'm redirected to <a href="http://www.mysite.com/bv">www.mysite.com/bv</a></div><div><br></div><div>BUT, when I browse to any internal pages without the /bv, I get a page not found. For example:</div><div>www.mysite.com/contact &nbsp;will not redirect to <a href="http://www.mysite.com/bv/contact">www.mysite.com/bv/contact</a></div><div><br></div><div>Is there a wildcard redirect so any internal page is redirected to include the /bv ?</div><div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Century Gothic'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Century Gothic'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Century Gothic'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Century Gothic'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Century Gothic'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><div><div><font class="Apple-style-span" face="'Century Gothic'"><font class="Apple-style-span" face="Helvetica"><br></font></font></div></div></div></div></div></div></span></div></span></div></span></div></span></div></span></div></span></div></span></div> </div><br><div><div>On Nov 15, 2010, at 8:31 AM, Ryan LeTulle wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I may not totally understand your question but why don't you set your DocumentRoot to point into that folder?</div><div><br></div><div><i>DocumentRoot "/path/to/bv"</i></div><div><br></div><div><br></div> Ryan LeTulle<br><br><a href="http://www.bayousoft.com" target="_blank">bayousoft.com</a><br><a href="http://www.twitter.com/bayousoft" target="_blank">twitter.com/bayousoft</a><br><br><br><br> <br><br><div class="gmail_quote">On Mon, Nov 15, 2010 at 9:23 AM, Lynn Stott (Stott Design) <span dir="ltr">&lt;<a href="mailto:lynn@stottdesign.com">lynn@stottdesign.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "> <div style="word-wrap:break-word">I have a Drupal site installed at /bv, so home page is&nbsp;<a href="http://www.mysite.com/bv" target="_blank">www.mysite.com/bv</a><div>I want to be sure when anyone tries&nbsp;<a href="http://www.mysite.com/anypage" target="_blank">www.mysite.com/anypage</a>, they get redirected to&nbsp;<a href="http://www.mysite.com/bv/anypage" target="_blank">www.mysite.com/bv/anypage</a></div> <div>Is this possible via htaccess?</div><div><br></div><div>I currently have this rewrite to be sure the www is included (needed for SSL):</div><div><div>&nbsp;&nbsp; RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC]</div><div>&nbsp;&nbsp; RewriteRule ^(.*)$&nbsp;<a href="http://www/" target="_blank">http://www</a>. <a href="http://mysite.com/bv/$1" target="_blank">mysite.com/bv/$1</a> [L,R=301]</div> <div><br></div><div>Thanks for any help.</div><div><br></div><div>Lynn</div></div><div> <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:'Century Gothic';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word"> <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:'Century Gothic';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word"> <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:'Century Gothic';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word"> <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:'Century Gothic';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word"> <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:'Century Gothic';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word"> <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:'Century Gothic';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word"> <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Arial;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"> <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"> <div><div><div><div><div><br></div></div></div><i><font size="3"><span style="font-size:12px"><span style="font-style:normal;font-size:medium"><br></span></span></font></i></div><br></div><br></div></span><br></div></span><br> </div></span><br></div></span><br></div></span><br></div></span><br></div></span><br></div></span><br> </div><br></div></blockquote></div><br></blockquote></div><br></div></body></html>