一个类似blog的php站点,用户注册后只需输入
http://www.test.com/用户名 即可到达他们自己的子站点页面是不是可以把http://www.test.com/user.php?uid=用户ID
用rewrite解析成http://www.test.com/用户ID/ 具体要怎么配置实现呢?
http://www.test.com/用户名 即可到达他们自己的子站点页面是不是可以把http://www.test.com/user.php?uid=用户ID
用rewrite解析成http://www.test.com/用户ID/ 具体要怎么配置实现呢?
http://blog.test.com/用户名
进入,不然,apache会把http://www.test.com/index.php变成http://www.test.com/user.php=index.php
那样就去掉了上面的顾虑
都是正则来着
<FilesMatch "\.(php)$">
php_value short_open_tag "Off"
php_value auto_append_file "/mnt/hda5/usr/local/www/html/count.htm"
</FilesMatch>AddType application/x-httpd-php .htm .html
<FilesMatch "\.(htm?)$">
php_value short_open_tag "Off"
php_value auto_append_file "/mnt/hda5/usr/local/www/html/count.htm"
</FilesMatch>
注意:在有的服务器上不能正常处理