RewriteEngine on
RewriteCond %{QUERY_STRING} ^mid=(\d+)$
RewriteRule ^/movie_play.php /movie%1.html? [R]
-----Message d'origine-----
De : tech user [mailto:[EMAIL PROTECTED]
Envoyé : mardi 25 septembre 2007 08:18
À : [email protected]
Objet : Re: [EMAIL PROTECTED] help about a rewrite rule
--- Joshua Slive <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]