伪静态如何设置 是不是这样写 高手指点下 谢谢!
点击数:202 | 回复数:7 | 最后回复发表于2010.06
1楼

- lei8781
- 发表于 2009.12.26 15:00:41
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /tieba
RewriteRule ^(.*)/category-([0-9]+)-([0-9]+).html?*(.*)$ $1/category.php?cid=$2&page=$3&$4
RewriteRule ^(.*)/bar-([0-9]+)-([0-9]+).html?*(.*)$ $1/forum.php?fid=$2&page=$3&$4
RewriteRule ^(.*)/topic-([0-9]+)-([0-9]+).html?*(.*)$ $1/topic.php?tid=$2&page=$3&$4
RewriteRule ^(.*)/member-([0-9]+).html?*(.*)$ $1/member.php?uid=$2&$3
</IfModule>
是不是这样 我的程序在tieba 这个目录内 可是写后上传还是实现不了
虚心的请教下各位 我这样写是不是有问题 哪位站长有写好的 传份也可以 邮箱 yyxc220@qq.com 不胜感谢!
RewriteEngine On
RewriteBase /tieba
RewriteRule ^(.*)/category-([0-9]+)-([0-9]+).html?*(.*)$ $1/category.php?cid=$2&page=$3&$4
RewriteRule ^(.*)/bar-([0-9]+)-([0-9]+).html?*(.*)$ $1/forum.php?fid=$2&page=$3&$4
RewriteRule ^(.*)/topic-([0-9]+)-([0-9]+).html?*(.*)$ $1/topic.php?tid=$2&page=$3&$4
RewriteRule ^(.*)/member-([0-9]+).html?*(.*)$ $1/member.php?uid=$2&$3
</IfModule>
是不是这样 我的程序在tieba 这个目录内 可是写后上传还是实现不了
虚心的请教下各位 我这样写是不是有问题 哪位站长有写好的 传份也可以 邮箱 yyxc220@qq.com 不胜感谢!
美国主机,不是独立服务器,没有权限修改httpd.conf的。
我的主机是支持 .htaccess的,可是我上传后也不行,网站都没法访问了
alan能不能指点一下?
我的主机是支持 .htaccess的,可是我上传后也不行,网站都没法访问了
alan能不能指点一下?
空间支持.htaccess,支持urlrewrite。。
可还是错误。
.htaccess文件内容如下:
RewriteEngine On
RewriteRule ^(.*)/category-([0-9]+)-([0-9]+).html?*(.*)$ $1/category.php?cid=$2&page=$3&$4
RewriteRule ^(.*)/bar-([0-9]+)-([0-9]+).html?*(.*)$ $1/forum.php?fid=$2&page=$3&$4
RewriteRule ^(.*)/topic-([0-9]+)-([0-9]+).html?*(.*)$ $1/topic.php?tid=$2&page=$3&$4
RewriteRule ^(.*)/member-([0-9]+).html?*(.*)$ $1/member.php?uid=$2&$3
可还是错误。
.htaccess文件内容如下:
RewriteEngine On
RewriteRule ^(.*)/category-([0-9]+)-([0-9]+).html?*(.*)$ $1/category.php?cid=$2&page=$3&$4
RewriteRule ^(.*)/bar-([0-9]+)-([0-9]+).html?*(.*)$ $1/forum.php?fid=$2&page=$3&$4
RewriteRule ^(.*)/topic-([0-9]+)-([0-9]+).html?*(.*)$ $1/topic.php?tid=$2&page=$3&$4
RewriteRule ^(.*)/member-([0-9]+).html?*(.*)$ $1/member.php?uid=$2&$3
1





























