【php程序+iis,伪静态有关问题,第一站成功,第二站失败?】教程文章相关的互联网学习教程文章

修改destoon会员公司的伪静态中的com目录的方法

本文详细讲述了修改destoon会员公司伪静态地址中的com目录的方法,具有一定的实用价值。分享给大家,希望对大家destoon开发有所帮助。 一般来说,destoon企业网站的伪静态默认是com目录,要修改的话首先打开include目录下global.func.php文件 在大约892行找到: $URL = DT_PATH.com/.$username./;将其中的com修改为你要修改的目录。 最后修改伪静态的文件,apache和iis的都一样,打开将/com/替换成你要修改的目录名称即可。

destoon之URL Rewrite(伪静态)设置方法详解

1、如果您的服务器支持.htaccess,则无需设置,网站根目录下的.htaccess已经设置好规则。 规则(参考http://download.destoon.com/rewrite/htaccess.txt)为: # Destoon B2B Rewrite Rules ErrorDocument 404 /404.php RewriteEngine On RewriteBase / RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php RewriteRule ^(.*)/file/(.*)\.php(.*)$ /404.php RewriteRule ^(.*)-htm-(.*)$ $1.php?$2 Rewrite...

解决CodeIgniter伪静态失效

原来地址:http://127.0.0.1/onsite/index.php/welcome/index/abc123 修改后地址:http://127.0.0.1/onsite/abc123.html代码如下:<IfModule mod_rewrite.c> RewriteEngine on RewriteBase /onsite RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php?/$1 [L] RewriteCond %{REQUEST_URI} ^application.* RewriteRule ^(.*)$ /index.php?/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...

php 伪静态之IIS篇

有的win主机IIS不支持 .htaccess 文件, 我在这里指的不是本地 在本地的话用apmserv服务器可以用.htaccess 文件,用apmserv服务器环境配置伪静态可以看 php 伪静态 (url rewrite mod_rewrite 重写) 这篇文章,讲的很详细. 这里我们主要讲解httpd.ini 废话不说直接看效果~ 例: www.gxlcms.com/index.php我们想让他用 www.gxlcms.com/index.html 来直接访问www.gxlcms.com/newxx.php?=10 [newxx.php 是新闻的详细页面]我们把他伪静态...

php伪静态之APACHE篇

1.检测Apache是否支持mod_rewrite通过php提供的phpinfo()函数查看环境配置,通过Ctrl+F查找到“Loaded Modules”,其中列出了所有apache2handler已经开启的模块,如果里面包括“mod_rewrite”,则已经支持,不再需要继续设置。 如果没有开启“mod_rewrite”,则打开目录 您的apache安装目录“/apache/conf/” 下的 httpd.conf 文件,通过Ctrl+F查找到“LoadModule rewrite_module”,将前面的”#”号删除即可。如果没有查找到,则到...

thinkphp路由规则使用示例详解和伪静态功能实现(apache重写)

代码如下:<?php //thinkphp 路由定义规则 $route = array( news/:action/:year\d/:month/:day=>news/read?year=:2&month=:3&day=:4, news/:action^delete|update|insert/:year\d/:month/:day=>array( news/read?extra=:2&status=1,year=:2&month=:3&day=:4), ); $url = http://www.test.com/index.php/news/read/2012/2/21/extraparam/test.html; //后缀名$extension = html; //可知: $_SERVER[PATH_IN...

SEO工具箱:PHP自动生成PHPCMS伪静态规则.htaccess

define(‘PHPCMS_PATH‘, dirname(__FILE__).DIRECTORY_SEPARATOR); include PHPCMS_PATH.‘/phpcms/base.php‘; //pc_base::creat_app(); $db_config = pc_base::load_config(‘database‘); //读取配置文件 pc_base::load_sys_class(‘mysql‘, ‘‘, 0); pc_base::load_sys_class(‘param‘, ‘‘, 0); pc_base::load_model(‘content_model‘); $db=new mysql(); $db->open($db_config[‘default‘]); $pre = $db_config[‘...

PHP 伪静态规则写法RewriteRule-htaccess详细语法使用

一、正则表达式教程伪静态规则写法RewriteRule-htaccess详细语法使用教程分享简单说下:伪静态实际上是利用PHP把当前地址解析成另外一种方法进行访问网站!要学伪静态规则的写法,你必须得懂一点正则,不会没关系,照着下面的套就行一、正则表达式教程有一个经典的教程: 正则表达式30分钟入门教程这个教程的确很简单,看完基本上写一些简单的正则就没有问题了。正则是一个需要长期使用的工具,隔段时间不用会忘记,所以我每次都看一遍这...

PHP 伪静态规则写法RewriteRule-htaccess详细语法使用【代码】

\s 匹配任意的空白符\d 匹配数字\b 匹配单词的开始或结束^ 匹配字符串的开始$ 匹配字符串的结束* 重复零次或更多次+ 重复一次或更多次? 重复零次或一次{n} 重复n次{n,}重复n次或更多次{n,m} 重复n到m次应用替换时,前面第一个()中匹配的内容后面就用$1引用,第二个()中匹配的就用$2应用……这个个()里面的东东叫原子组分析一下 discuz搜索引擎优化 htaccess 里面的重写。RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdis...

php配置伪静态如何将.htaccess文件转换 nginx伪静态文件

php通常设置伪静态三种情况,.htaccess文件,nginx伪静态文件,Web.Config文件得形式,如何将三种伪静态应用到项目中呢, 1,.htaccess文件 实例 <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] RewriteCond %{http_host} ^96net.com.cn [NC] RewriteRule ^(.*)$ http://www...

phpstudymysql密码默认或重置,phpstudy伪静态开启,网站发布外_MySQL

伪静态 phpstudy mysql密码是什么?phpStudy如何修改或重置MySQL密码, MySQL用户名和密码默认都是root。 修改mysql密码: 请使用『其他选项菜单』-『MySQL设置』-『设置或修改密码』 。phpstudy伪静态开启方法:打开配置文件-httpd-conf,查找将其下面的AllowOverride None改为:AllowOverride All然后查找:Options FileInfo AuthConfig Limit将其下面的AllowOverride None也改为AllowOverride All保存后,重启Apache然后在自己本...

WDCP配置ThinkPHP5伪静态隐藏index.php,出现“”解决重定向次数过”问题【代码】

站点域名的配置:xxx.com.confserver {listen 80;root /www/web/xxx_com/public_html;server_name xxx.com;index index.html index.php index.htm;error_page 400 /errpage/400.html;error_page 403 /errpage/403.html;error_page 404 /errpage/404.html;error_page 503 /errpage/503.html;location ~ \.php(.*)$ {fastcgi_pass unix:/tmp/php-70-cgi.sock;fastcgi_index index.php;#fastcgi_param SCRIPT_FILENAME ...

php .htaccess 伪静态【代码】

原文链接:http://www.cnblogs.com/bwzhangtao/p/4233385.html 1 #2 #以下是网站伪静态正则3 #4 RewriteEngine On5 RewriteRule ^index.html$ index.php6 RewriteRule ^about.html$ about.php7 RewriteRule ^about_([0-9]+).html$ about.php?id=$18 RewriteRule ^contact.html$ contact.php9 RewriteRule ^service.html$ service.php 10 RewriteRule ^case.html$ case.php 11 RewriteRule ^case_([0-9]+).html$ case.php?fid=$1 12...

CI 框架 伪静态设置 去掉index.php【代码】

.htaccess文件修改DirectoryIndex index.phpRewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php|images|themes|uploads|uploads_thumb|robots\.txt)RewriteRule ^(.*)$ index.php?/$1 [L] config/config.php中:$config[uri_protocol] = "AUTO"; //或者是PATH_INFO

thinkphp iis伪静态规则【代码】

把以下代码保存成web.config文件,放到网站根目录内即可。<?xml version="1.0" encoding="UTF-8"?> <configuration><system.webServer><rewrite><rules><rule name="ThinkPHP_NiPaiYi" stopProcessing="true"><match url="^(.*)$" ignoreCase="false" /><conditions logicalGrouping="MatchAll"><add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /><add input="{REQUEST_FILENAME}" mat...