服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess apache 2.2 mod rewrite
  3. htaccess重写不工作
Intereting Posts
为什么googlebot从我的SSH服务器请求robots.txt? 如何为Microsoft Virtual Server创build自签名证书? pipe理Win2008路由表 一个机架上有多less个hp dl360 g7? 外部/内部parsing的DNSconfiguration 让我们encryptionvalidation失败 如何从机器启动远程桌面访问会话来控制从另一台机器? 如何将运行过程发送到后台? 无法validationLDAP服务器的SSL证书颁发者 通过GPO更改本地pipe理员密码 如何调整VMware硬盘文件? 如果在SQL2005实例上安装SQL Service Pack 4,是否也需要安装较早的SP 无法从networking访问Linux机器,从机器的networking是好的 停止postfix本地中继/外部邮件服务器 安装200 cifs挂载点吃所有的CPU。 这是对的吗?

htaccess重写不工作

我想重写http://example.com/apps/app4/step1.php到http://easyfanpageapp.com/apps/

我用这个重写,但它不工作。

 RewriteEngine On RewriteBase / RewriteRule ^apps/?$ ^(.*)\step1.php$ [NC,L] 

也试过

 RewriteRule ^apps/?$ apps/app4/step1.php$ [NC,L] 

什么可能是错的?

  • 用htaccess检查GET值?
  • .htaccess RewiteRulevariables问题
  • dynamic变为静态
  • Apache为我的域创build的子域提供500内部服务器错误
  • htaccess重写?

  • 如何将一个域指向特定的目录?
  • htaccessredirect/ RedirectMatch与包含特殊/编码字符的URL
  • .htaccess贝宝和PayPal沙箱
  • RewriteCond多个文件
  • URI用假子域和多个variables重写

你所要求的规则是:

 RewriteRule ^apps apps/app4/step1.php [NC,L] 

根据您的应用程序,您可能需要更多:

 RewriteRule ^apps(.*) apps/app4/step1.php?args=$1 [NC,L] 
  • 反转mod_rewrite规则
  • Apache RewriteRule – 代理标志不起作用
  • Mod重写cgi-bin
  • Git智能HTTP(S)与URLredirect,无法正常工作
  • 使用Apache Directory指令时出现500错误
  • mod_rewrite:将现有文件重写为slu,,slu to现有文件
  • 使用.htaccess更改端口和主机
  • mod_rewrite可以区分“用户”请求和内部redirect吗?
  • .htaccess忽略,具体到EC2 – 不是通常的嫌疑人
  • 为自己托pipe的CDNconfigurationhtaccess文件

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