RE: help about a rewrite rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



RewriteEngine on
RewriteCond %{QUERY_STRING} ^mid=(\d+)$
RewriteRule ^/movie_play.php /movie%1.html?  [R]
  
-----Message d'origine-----
De : tech user [mailto:techwww@xxxxxxxxxxxx] 
Envoyé : mardi 25 septembre 2007 08:18
À : users@xxxxxxxxxxxxxxxx
Objet : Re:  help about a rewrite rule


--- Joshua Slive <joshua@xxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux