Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 53719 invoked from network); 8 Mar 2010 14:11:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Mar 2010 14:11:42 -0000 Received: (qmail 40132 invoked by uid 500); 8 Mar 2010 14:11:16 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 40067 invoked by uid 500); 8 Mar 2010 14:11:16 -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 40055 invoked by uid 99); 8 Mar 2010 14:11:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Mar 2010 14:11:16 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.212.45] (HELO mail-vw0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Mar 2010 14:11:15 +0000 Received: by vws19 with SMTP id 19so2676230vws.18 for ; Mon, 08 Mar 2010 06:10:53 -0800 (PST) Received: by 10.220.125.17 with SMTP id w17mr2885942vcr.136.1268057453297; Mon, 08 Mar 2010 06:10:53 -0800 (PST) Received: from [192.168.200.166] (74-140-237-179.dhcp.insightbb.com [74.140.237.179]) by mx.google.com with ESMTPS id 39sm47507701vws.0.2010.03.08.06.10.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 08 Mar 2010 06:10:52 -0800 (PST) Message-Id: From: Rich Bowen To: users@httpd.apache.org In-Reply-To: <4B94C03D.7080709@infoservices.in> Content-Type: multipart/alternative; boundary=Apple-Mail-2--160043642 Mime-Version: 1.0 (Apple Message framework v936) Date: Mon, 8 Mar 2010 09:10:48 -0500 References: <4B94C03D.7080709@infoservices.in> X-Mailer: Apple Mail (2.936) Subject: Re: [users@httpd] can .htaccess make url better ? --Apple-Mail-2--160043642 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Mar 8, 2010, at 4:15 AM, J. Bakshi wrote: > Hello list, > > the click enlarge facility of an image gallery generates the links > in a > very ugly manner, like > > ```````````````` > http://192.168.1.1/reifenqualitaet/index.php?eID=tx_cms_showpic&file=uploads/tx_reifenqualitaetimage/image-227X227_02.jpg&bodyTag= > &wrap=%20|%20&md5=9021563e8e2c9efadb629ddd197f22bf > ```````````````` > > Is it somehow possible to generate the link little nicer by the help > of > .htaccess ? It is possible, using mod_rewrite, to make most URLs look different. One person's notion of nice may be different from another. I would, however, recommend that you ask this question of users of this particular image gallery software, as they very likely have a standard way of doing what you're trying to do. Failing that, I would suggest that you look at the mod_rewrite docs (http://httpd.apache.org/docs/trunk/rewrite/ and http://wiki.apache.org/httpd/Rewrite) and see if there's something there that does what you need. Also, note that .htaccess files are merely one of the places that you can put configuration directives. When possible, you should try to put directives in the server configuration file rather than in .htaccess files. -- Rich Bowen rbowen@apache.org --Apple-Mail-2--160043642 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On Mar 8, 2010, = at 4:15 AM, J. Bakshi wrote:

Hello list,

the click = enlarge facility of an image gallery generates the links in a
very = ugly manner, like

````````````````
http://192.168.1.1/reifenqualitaet/index.php?eID=3Dtx_cms_showpic&am= p;file=3Duploads/tx_reifenqualitaetimage/image-227X227_02.jpg&bodyTag=3D= <body>&wrap=3D%20|%20&md5=3D9021563e8e2c9efadb629ddd197f= 22bf
````````````````

Is it somehow possible to generate the = link little nicer by the help of
.htaccess = ?

It is possible, using = mod_rewrite, to make most URLs look different. One person's notion of = nice may be different from another. I would, however, recommend that you = ask this question of users of this particular image gallery software, as = they very likely have a standard way of doing what you're trying to = do.

Failing that, I would suggest that you look = at the mod_rewrite docs (http://httpd.apache.o= rg/docs/trunk/rewrite/ and http://wiki.apache.org/http= d/Rewrite) and see if there's something there that does what you = need.

Also, note that .htaccess files are = merely one of the places that you can put configuration directives. When = possible, you should try to put directives in the server configuration = file rather than in .htaccess = files.

--
Rich Bowen
= --Apple-Mail-2--160043642--