服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess apache 2.2 mod rewrite
  3. .htaccess&Mod_Rewrite
Intereting Posts
如果主机启动,Nagios不检查服务 磁带机如何维修? IIS 7 HttpLogging模块configuration为不logging监视请求 新手问交换价值:我有多less交换? 冷却小型服务器机房 三个独立的虚拟机用于Web服务器,数据库和数据处理。 好主意? nginx使用proxy_pass和$ http + CloudFlareredirect循环 SSL证书安装GlassFish或Apache或两者? 主机适配器与BIOS 如何才能最有效地使用邮件服务器的有限静态IP地址? Windows部署服务的远程pipe理控制台 是否可以在Intranet上缩短子域名 Microsoft Security Essentials:MpCmdRun.exe -SignatureUpdate -unc切换不起作用 Samba服务器实现细节和最佳实践 用于C程序的PID文件monit

.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