Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 73761 invoked from network); 19 Jan 2005 19:39:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Jan 2005 19:39:36 -0000 Received: (qmail 3611 invoked by uid 500); 19 Jan 2005 19:39:19 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 3598 invoked by uid 500); 19 Jan 2005 19:39:19 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 3582 invoked by uid 99); 19 Jan 2005 19:39:19 -0000 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mhtmail01.mail.nypl.org (HELO mhtmail01.mail.nypl.org) (149.123.26.21) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 19 Jan 2005 11:39:18 -0800 Date: Wed, 19 Jan 2005 14:40:48 -0500 MIME-Version: 1.0 To: users@httpd.apache.org Cc: From: PMilanese@nypl.org X-Mailer: Microsoft Outlook v 11.00.6353, MSOC v 2.00.4007.00 Message-ID: X-MIMETrack: Serialize by Router on MHTMAIL01/MHT/Nypl(Release 5.0.11 |July 24, 2002) at 01/19/2005 02:40:19 PM, Serialize complete at 01/19/2005 02:40:19 PM Content-Type: multipart/alternative; boundary="----=_NextPart_000_08C4_01C4FE34.DE041320" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked Subject: RE: [users@httpd] Mod_rewrite help X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_08C4_01C4FE34.DE041320 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Wait. You said you want it to convert to /view, not /imageview5/view You will need to include imageview5 in the regex. RewriteRule ^/imageview5/view/(.*)/(.*)$ http://www.blah.com/?album=$1$file=$2 _____ From: Jorge Schrauwen [mailto:jorge@blackdot.be] Sent: Wednesday, January 19, 2005 2:37 PM To: users@httpd.apache.org Subject: RE: [users@httpd] Mod_rewrite help No, still doesnt work, i still get a 404. I tried from .htaccess and httpd.conf, same result --- error.log --- [Wed Jan 19 20:34:10 2005] [error] [client 192.168.2.4] File does not exist: S:/wwwroot/imageview5/view thanx for the help though Jorge _____ From: PMilanese@nypl.org [mailto:PMilanese@nypl.org] Sent: Wednesday, January 19, 2005 20:30 To: users@httpd.apache.org; jorge@blackdot.be Subject: RE: [users@httpd] Mod_rewrite help That should do it, but. I don't know if absolutely necessary, however I put the entire URL in the Rewrite. - RewriteRule ^/view/(.*)/(.*)$ http://www.blah.com/?album=$1$file=$2 Let me know if it helps- P _____ From: Jorge Schrauwen [mailto:jorge@blackdot.be] Sent: Wednesday, January 19, 2005 9:35 AM To: users@httpd.apache.org Subject: [users@httpd] Mod_rewrite help hi all, I'm new to mod_rewrite and regex for that mather... and i'm stuk. here is what i'm trying to do: i want to rewrite /view/vacation/1.jpg to /index.php?album=vacation&file=1.jpg this is what i have sofar: --- RewriteEngine on RewriteRule ^/view/(.*)/(.*) /index.php?album=$1&file=$2 -- thanx in advance Jorge Schrauwen ------=_NextPart_000_08C4_01C4FE34.DE041320 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Wait.

 

You said you want it to convert to = /view, not /imageview5/view

 

You will need to include imageview5 = in the regex.

 

RewriteRule = ^/imageview5/view/(.*)/(.*)$         http://www.blah.com/?a= lbum=3D$1$file=3D$2

 

 


From: Jorge = Schrauwen [mailto:jorge@blackdot.be]
Sent: Wednesday, January = 19, 2005 2:37 PM
To: = users@httpd.apache.org
Subject: RE: = [users@httpd] Mod_rewrite help

 

No, still doesnt work, i still get = a 404.

 

I tried from .htaccess and = httpd.conf, same result

 

--- error.log = ---

[Wed Jan 19 20:34:10 2005] [error] = [client 192.168.2.4] File does not exist: = S:/wwwroot/imageview5/view

 

thanx for the help = though

 

Jorge

 


From: PMilanese@nypl.org [mailto:PMilanese@nypl.org]
Sent: Wednesday, January = 19, 2005 20:30
To: = users@httpd.apache.org; jorge@blackdot.be
Subject: RE: = [users@httpd] Mod_rewrite help

That should do it, but… I don’t know if absolutely necessary, however I put the entire URL = in the Rewrite. –

 

RewriteRule ^/view/(.*)/(.*)$         http://www.blah.com/?a= lbum=3D$1$file=3D$2

 

Let me know if it = helps-

 

P

 


From: Jorge = Schrauwen [mailto:jorge@blackdot.be]
Sent: Wednesday, January = 19, 2005 9:35 AM
To: = users@httpd.apache.org
Subject: [users@httpd] = Mod_rewrite help

 

hi all,

I'm new to mod_rewrite and regex for that = mather...

and i'm stuk. here is what i'm trying to do:
i want to rewrite

/view/vacation/1.jpg

to

/index.php?album=3Dvacation&file=3D1.jpg

 

this is what i have = sofar:

---

RewriteEngine on
RewriteRule ^/view/(.*)/(.*) = /index.php?album=3D$1&file=3D$2

--

 

thanx in advance

 

Jorge Schrauwen

------=_NextPart_000_08C4_01C4FE34.DE041320--