httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] mod_rewrite syntax question
Date Tue, 18 Nov 2003 03:10:29 GMT

On Mon, 17 Nov 2003, Eben Goodman wrote:

> thanks for the reply,
>
> so I tried this and it didn't work, is there another way to use the R flag?
>
> RewriteEngine on
> RewriteCond %{REQUEST_URI} ^/index\.php.*
> RewriteRule ^(.+) - [L]
> RewriteRule ^(.+)/$ index.php?request=$1 [T=application/x-httpd-php,R,L]
>
> thanks for your time,

I meant take the specific case where you need to add the trailing slash
and do a redirect for that.  Leave the other cases the same.  (It makes no
sense to change the content-type on a redirect.)

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message