Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 12544 invoked from network); 29 Dec 2008 22:41:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Dec 2008 22:41:53 -0000 Received: (qmail 61089 invoked by uid 500); 29 Dec 2008 22:41:42 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 61076 invoked by uid 500); 29 Dec 2008 22:41:42 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 61067 invoked by uid 99); 29 Dec 2008 22:41:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Dec 2008 14:41:42 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ntwrkd@gmail.com designates 74.125.44.154 as permitted sender) Received: from [74.125.44.154] (HELO yx-out-1718.google.com) (74.125.44.154) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Dec 2008 22:41:33 +0000 Received: by yx-out-1718.google.com with SMTP id 3so1595726yxi.84 for ; Mon, 29 Dec 2008 14:41:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=iHMXYh6UYVhzQdz9YgF7Pk5kqw2ewk2wyrbVrnrLWf4=; b=qPCWwbXMvkssVoGug7VpgZcsvR651qQT8tUPLwqoAR1lq80SakzFuskpKcPoOGe8q4 K2TUPdj77IQacwUDh0iE20Kj4CMLI/yoUpxFyd6wv+dTAJfBuz4P66242d3QczsckGIZ nm06xT2Y/DZ5IU2ph8rvm+J+ZCZouI15UH87c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=fRin22xJUiz3EDLPiH8KruNEucWSIer/QKnohuulydITQX3znhRrA0T1ghoXb5b64V MODGFK/KCtpwF7ogRx7svmLzjBvwXRCOIm10N/j0BWLUBFjPWRY+PqhUkh6Ri5ELbmaX kLcccbFJoNuBQod6bw+UAiMVazCsm6y0xLJPU= Received: by 10.151.6.2 with SMTP id j2mr26914225ybi.209.1230590442129; Mon, 29 Dec 2008 14:40:42 -0800 (PST) Received: by 10.151.119.3 with HTTP; Mon, 29 Dec 2008 14:40:42 -0800 (PST) Message-ID: Date: Mon, 29 Dec 2008 14:40:42 -0800 From: "Matthew Sacks" To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Re: help with rewrites - changing the base path I cleared all rewrites so all I have is the following: RewriteRule ^/techblog(.*)$ http://www.foo.com/$1 [R=301] I want http://www.bar.com/techblog/thisfile.html to be redirected to http://www.foo.com/thisfile.html I cant seem to get this to work. all I get is 404 On Mon, Dec 15, 2008 at 2:54 PM, Matthew Sacks wrote: > i am trying to change the base path of a directory to rewrite to a new > location, there are no files in the location, so it is just a > cosmetic/seo change. > > i have some rewrites that are put in place by my hosting provider, and > im having some difficulty getting the rewrite to work: > > > here is my .htaccess file: > > # BEGIN WordPress > > RewriteEngine On > > RewriteBase /techblog/ > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > #RewriteRule ^/techblog /technology-blog [L] > RewriteRule . /techblog/index.php [L] > > > > > # END WordPress > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org