开发者

Rewriting friendly URL's using .htaccess [duplicate]

开发者 https://www.devze.com 2023-04-01 10:13 出处:网络
This question already has answers here: 开发者_JAVA百科 Closed 11 years ago. Possible Duplicate: Shorten the URL from example.com/page.php?var=letters to example.com/letters
This question already has answers here: 开发者_JAVA百科 Closed 11 years ago.

Possible Duplicate:

Shorten the URL from example.com/page.php?var=letters to example.com/letters

Using htaccess, is it possible to redirect from:

http://www.mydomain/123456

to

http://www.mydomain/myscript.php?id=123456

Any help would be much appreciated.


You can use rewrite mod :

RewriteRule ^(\d+)$   myscript.php?id=$1
0

精彩评论

暂无评论...
验证码 换一张
取 消