httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PMilan...@nypl.org
Subject RE: [users@httpd] Mod_rewrite help
Date Wed, 19 Jan 2005 19:40:48 GMT
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


Mime
View raw message