Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 34078 invoked from network); 15 Sep 2008 21:10:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Sep 2008 21:10:28 -0000 Received: (qmail 97862 invoked by uid 500); 15 Sep 2008 21:10:13 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 97842 invoked by uid 500); 15 Sep 2008 21:10:13 -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 97831 invoked by uid 99); 15 Sep 2008 21:10:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Sep 2008 14:10:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.85.38.174] (HELO popeye.combios.es) (212.85.38.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Sep 2008 21:09:12 +0000 Received: from [192.168.245.129] (p549EB013.dip0.t-ipconnect.de [84.158.176.19]) (authenticated bits=0) by popeye.combios.es (8.13.8/8.13.8/Debian-3) with ESMTP id m8FL9aTW010517 for ; Mon, 15 Sep 2008 23:09:36 +0200 Message-ID: <48CECEAF.6010803@ice-sa.com> Date: Mon, 15 Sep 2008 23:07:59 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: users@httpd.apache.org References: <592f71460809151333s981891aw7bb01af8440cef5f@mail.gmail.com> In-Reply-To: <592f71460809151333s981891aw7bb01af8440cef5f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on popeye.combios.es X-Virus-Scanned: ClamAV 0.92.1/8248/Mon Sep 15 17:28:54 2008 on popeye.combios.es X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-97.9 required=2.5 tests=RCVD_IN_PBL, RCVD_IN_SORBS_DUL,USER_IN_WHITELIST autolearn=no version=3.2.3 Subject: Re: [users@httpd] hide a URL Rodrigo Correa de Paiva wrote: > I need to hide part of a url. > for example: > www.exemple.com/site/community/begin.do > || i need to hide the word "site" > v > www.exemple.com/community/begin.do > > > which the most appropriate way to do this? > mod_rewrite? > I do not know mod_rewrite, could someone give me a help about what to do? > Thanx > I'm a beginner with nod_rewrite too, but this seems a simple one, so let me try : 1) RewriteEngine on 2) RewriteLog /path-to-logfile 3) RewriteLogLevel 3 4) RewriteRule ^/site/(.*)$ /$1 [PT,L] (Lines 2 and 3 so that you can follow what happens, in the named logfile. When it works, set RewriteLogLevel back to 0). I did not include the "www.exemple.com" part, because that is not part of the URL. The "PT" flag is so that, if you later decide to alias /community to something else, it will still do it. The "L" flag is there to say that once that replacement is done, you don't want any other RewriteRule to do something else to the result. Andr� --------------------------------------------------------------------- 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