Chinaunix首页 | 论坛 | 博客
  • 博客访问: 245493
  • 博文数量: 76
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 745
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-28 16:04
文章分类

全部博文(76)

文章存档

2013年(2)

2010年(21)

2009年(53)

我的朋友

分类:

2009-11-06 10:07:13

需要建立一个文件,名为
.htaccess 由于windows下命名有限制,所以可以从linux下创建后下载下来.
本文也提供下载方便 ^_^

RewriteEngine On

RewriteBase /htmlonline

RewriteRule ^([0-9]+)\.html$ softintrotemplet.php?id=$1

#ErrorDocument 404 /errors/notfound.html
#ErrorDocument 500 /errors/internalerror.html

以上规则,其实就是下例:

转为

就这么简单 ~~`

APACHE的配置:

#开启rewrite

LoadModule rewrite_module modules/mod_rewrite.so

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#

    Order allow,deny
    Deny from all


文件:.htaccess.rar
大小:0KB
下载:下载
阅读(1002) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~