httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel-Stéphane SMORGRAV <Axel-Stephane.SMORG...@europe.adp.com>
Subject RE: [users@httpd] help about a rewrite rule
Date Tue, 25 Sep 2007 06:21:55 GMT
RewriteEngine on
RewriteCond %{QUERY_STRING} ^mid=(\d+)$
RewriteRule ^/movie_play.php /movie%1.html?  [R]
  
-----Message d'origine-----
De : tech user [mailto:techwww@yahoo.com.cn] 
Envoyé : mardi 25 septembre 2007 08:18
À : users@httpd.apache.org
Objet : Re: [users@httpd] help about a rewrite rule


--- Joshua Slive <joshua@slive.ca> wrote:

> 
> See:
> http://wiki.apache.org/httpd/RewriteQueryString
> 

Thank you so much Joshua.
I want to rewrite the url from,
http://www.example.com/movie_play.php?mid=45298

to,
http://www.example.com/movie45298.html

I added the commands in httpd.conf:

RewriteEngine on
RewriteCond %{QUERY_STRING} ^mid=(\d+)$
RewriteRule ^/movie_play.php /movie%1.html  [R,L]

but this can't work.I got the rewritten url as,
http://www.example.com/movie45298.html?mid=45298

the `?mid=45298` is not needed.
Please give more suggestions,thanks.





      Sick of deleting your inbox? Yahoo!7 Mail has free unlimited storage.
http://au.docs.yahoo.com/mail/unlimitedstorage.html


---------------------------------------------------------------------
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


---------------------------------------------------------------------
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