服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess apache 2.2 mod rewrite
  3. .htaccess&Mod_Rewrite
Intereting Posts
Apache的位置匹配负面的正则expression式 最大限度地减less压力 tcpdump over vpn / ssh 在Windows域之外的Windows工作站上远程更改本地组策略 如何区分IPv6 URL中的主机和端口? postfix smtptesting发生“中继访问被拒绝” 带有Active Directory的EAP-TLS for Wireless 更改目录修改时间的操作列表 ESX 4.0上的iSCSI和卷信息位置在哪里? cp -r <目录>。 返回一些文件:cp:can not stat GCE刷新私人ips dns 设置Debian 7静态IP地址范围 远程rsyslog客户端/服务器问题 无法安装MySQL OpenVPN来自对端的封装不好的数据包长度

.htaccess&Mod_Rewrite

我正在创build一个网站。 我在.htaccess文件中有这样的代码:
RewriteEngine On
RewriteRule ^/([0-9][0-9])/$ /redirect.php?id=$1
但是当我去,例如/ ASEi说404未find问题是什么?

  • 如何链接重写在Nginx中?
  • .htaccess和.htpassword不起作用
  • htaccess重写规则
  • apache .htaccess删除.php后的所有内容
  • 使用WWW前缀访问站点导致500内部服务器错误!
 RewriteRule ^([0-9][0-9])$ /redirect.php?id=$1 

应该可能工作。 尽pipe您在这里做的是将地址从http://www.example.com/12 (仅限两位数字ID)重写为http://www.example.com/redirect.php?id=12

根据你的例子( / ASEI ),我不确定这是你真正想要的。

  • htaccess内部错误代码500
  • mod_auth密码validation错误?
  • 如何将httpstream量redirect到子目录,而不破坏子目录中的应用程序?
  • 将域的内容redirect到另一个域
  • 我的apache2.conf中没有“AllowOverride”指令
  • 阻止域名stream量的最佳方法
  • 通用.htaccess www.redirect
  • .htaccess正则expression式的最佳性能?
  • 网站只能从两个特定的iPad访问,而不能使用其他设备或IP(PHP)
  • 解决.htaccess通配符子域重写问题

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy