我有一个运行在ubuntu10.10上的apache2.2和php5服务器。我正在尝试将url /anything/page.php更改为/page.php?var=anything。
发布于 2011-02-04 07:38:55
使用Apache mod_rewrite,您可以在Apache conf文件或.htaccess文件中设置如下内容
RewriteEngine On
RewriteRule ^/(.*)/page.php$ /page.php?var=$1查看更多here
https://stackoverflow.com/questions/4892905
复制相似问题