Passing rewrited url to a filename translators

Discuss practical ways rearrange URLs using mod_rewrite.

Postby sawodo » Thu Jun 06, 2002 8:29 am

I'm having a problem when i try to rewrite url and pass it to next handler, in this case Alias handler.

This is what I added in to the VirtualHost config in the httpd.conf.

RewriteRule /page_([0-9]*).* /foo/parse.php?page=$1 [QSA,PT]
Alias /foo /var/apace/lib/cms

When I request for example page_2.html, I get the response "The requested URL /foo/parse.php was not found on this server.".

When I request /foo/parse.php?page=2 evrything works fine.

What am I doing wrong.

_________________
regards,
@li G

<font size=-1>[ This Message was edited by: sawodo on 2002-06-16 16:13 ]</font>
sawodo
 
Posts: 1
Joined: Wed Jun 05, 2002 4:00 pm
Location: @li G

Postby Brett » Mon Aug 05, 2002 11:39 am

You need to use the passthrough flag. Add [PT] at the end of your RewriteRule directive.

For the technical details, see http://httpd.apache.org/docs/mod/mod_rewrite.html and search for passthrough on that page.[/b]
Brett
 
Posts: 82
Joined: Tue Jul 10, 2001 4:00 pm
Location: yohost.com


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 40 guests

cron