西部数码虚拟主机iis怎么路由重写,去除隐藏index.php
来源:互联网 发布:php addcslashes 编辑:程序博客网 时间:2024/05/02 14:33
按道理说西部数码里面有一个伪静态选项, 我们通常配置的时候是用.htaccess 来隐藏index.php 有一个客户用的是西部数码的,折腾了很久就是不能成功
我们点击伪静态设置,选择 shopex 然后wwwroot 目录回生成一个web.config文件,编辑其文件下面的代码覆盖她
<?xml version="1.0" encoding="UTF-8"?><configuration> <system.webServer> <rewrite> <rules> <rule name="OrgPage" stopProcessing="true"> <match url="^(.*)$" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="^(.*)$" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php/{R:1}" /> </rule> </rules> </rewrite> <directoryBrowse enabled="false" /> <defaultDocument> <files> <clear /> <add value="index.asp" /> <add value="index.aspx" /> <add value="index.php" /> <add value="index.html" /> <add value="Default.htm" /> <add value="Default.asp" /> <add value="index.htm" /> <add value="Default.aspx" /> <add value="index.shtml" /> </files> </defaultDocument><httpErrors> <remove statusCode="404" subStatusCode="-1" /> <error statusCode="404" prefixLanguageFilePath="" path="/404.html" responseMode="ExecuteURL" /> </httpErrors><security> <requestFiltering allowDoubleEscaping="true"></requestFiltering> </security> </system.webServer></configuration>
这样就隐藏了index.php
阅读全文
0 0
- 西部数码虚拟主机iis怎么路由重写,去除隐藏index.php
- 国内虚拟主机空间:西部数码west263
- php对接西部数码API
- TP5怎么隐藏index.php
- Apache重写去除入口文件index.php
- 配置thinkphp路由,隐藏index.php
- Think PHP 隐藏Index (URL重写)
- 利用重写规则隐藏index.php
- apache rewrite重写隐藏index.php
- nginx重写url隐藏index.php
- thinkphp 隐藏index.php iis apache nginx
- php 去除路由中index.php 通过 .htaccess 文件
- 西部数码 linux主机 wordpress 重写规则httpd.conf
- windows2003 PHP IIS URL重写去掉index.php
- 阿里云虚拟主机 隐藏index.php的方法
- apache开启.htaccess,URL重写,去除index.php
- 虚拟空间iis环境下如何隐藏index.php
- 虚拟空间iis环境下如何隐藏index.php
- 常用putty命令汇总
- MQTT实战:Eclipse Paho + Moquette
- 机器学习基石 8.2 Error Measure
- 基于Bootstrap的超酷jQuery开关按钮插件
- 数据库视频|自己不懂的知识点 --- 数据库登录名、架构、用户、角色之辨
- 西部数码虚拟主机iis怎么路由重写,去除隐藏index.php
- 深度学习框架介绍
- Python3之pickle模块
- Linux--重定向--详解
- Java+opencv3.2.0之scharr滤波器
- 在C++中利用反射和简单工厂模式实现业务模块解耦
- Eclipse创建Maven多模块项目
- 微信扫描支付安卓手机一闪而过
- spring boot自动化配置原理