容器技术交流

 找回密码
 立即注册
查看: 6297|回复: 3

apache伪静态设置是这样的吗?

[复制链接]
发表于 2009-5-14 15:40:33 | 显示全部楼层 |阅读模式
  1. <IfModule mod_rewrite.c>
  2.         RewriteEngine On
  3.         RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)$ $1/archiver/index.php?$2
  4.         RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&page=$3
  5.         RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&extra=page\%3D$4&page=$3
  6.         RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/space.php?$2=$3
  7.         RewriteRule ^(.*)/tag-(.+)\.html$ $1/tag.php?name=$2
  8.     </IfModule>
复制代码
第一行<IfModule mod_rewrite.c>和最后一行的</IfModule>需不需要?
发表于 2009-5-14 16:13:45 | 显示全部楼层
呵,应该需要吧!
发表于 2012-4-27 16:13:06 | 显示全部楼层
高手能请假问题吗。我装的这个环境现在需要做 301 我做网站跟目录.htaccess 里面的但是没有作用请问还需要怎么做呢!到处查资料都查高了
发表于 2012-6-22 10:11:59 | 显示全部楼层
学习一下!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-15 05:53 , Processed in 0.032851 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表