<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/archiver/([a-z0-9-]+.html)$ $1/archiver/index.php?$2
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+).html$ $1/forumdisplay.php?fid=$2&page=$3
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3
RewriteRule ^(.*)/profile-(username|uid)-(.+).html$ $1/viewpro.php?$2=$3
</IfModule>
</VirtualHost>
RewriteEngine On
RewriteRule ^(.*)/archiver/([a-z0-9-]+.html)$ $1/archiver/index.php?$2
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+).html$ $1/forumdisplay.php?fid=$2&page=$3
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3
RewriteRule ^(.*)/profile-(username|uid)-(.+).html$ $1/viewpro.php?$2=$3
</IfModule>
</VirtualHost>
解决方案 »
- php socket_create调用问题
- PHP如何防止重复登录
- 百度知道在没登录时点击我要提问出现的登录窗口如何做的
- 请教装了php-5.2.5-win32-installer.msi后,选择apach,如何才能运行php网页呢?
- 如果我用的是access数据库,那么该怎样利用php搜索数据库(连接?打开?修改?显示?)
- 类的成员函数中,加上&的是什么意思?
- 如何 include 上一级目录下的PHP文件??
- php.ini中upload_max_filesize=32M现上载11M文件不成功,小一点的则可,怎么回事?
- 谁知道那儿有PHP下载?
- pdo插入不了是什么原因?也没有报错
- 这个正则表达式改怎么写?菜鸟求助高手!
- 自己写一个php程序,为什么执行久了就500错误
简单的说就是将静态的网址如:http:/www.xxx.com/archiver/add111.html重定向到http:/www.xxx.com/archiver/index.php?add111其他的语句类似,对照正则表达式的说明就会看明白了。