开发者

Changing urls in apache 2.2

I have an apache 2.2 and php5 server run开发者_StackOverflow社区ning on ubuntu 10.10. I am trying to make a url /anything/page.php change to /page.php?var=anything.


With Apache mod_rewrite then you can set something like this in your Apache conf file or in a .htaccess file

RewriteEngine On
RewriteRule ^/(.*)/page.php$ /page.php?var=$1

see more here

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜