0

我需要重写这个网址

http://www.website.com/game/newscore.php
http://www.website.com/game/index.php?act=Arcade&do=newscore
http://www.website.com/game/index.php?act=Arcade&do=savescore

合而为一

http://www.website.com/savescore

http://www.website.com/game/index.php?act=Arcade&do=verifyscore

http://www.website.com/game/verifyscore

这是我当前的 .htaccess 文件

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

任何人都可以帮助我吗?谢谢大家。

4

1 回答 1

1
RewriteRule ^http://www.website.com/game/newscore.php$ http://www.website.com/savescore [R,L]
RewriteRule ^http://www.website.com/game/index.php?act=Arcade&do=(new|save)score$ http://www.website.com/savescore [R,L]
RewriteRule ^http://www.website.com/game/index.php?act=Arcade&do=verifyscore$ http://www.website.com/game/verifyscore [R,L]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
于 2012-11-11T16:24:34.480 回答