CITY GEO

鹤岗兴山定制化电子商务

狐灵科技为企业提供定制化电子商务网站建设,支持商品管理、会员体系、订单支付、营销活动和移动端商城体验。

<div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">针对不同服务器、虚拟空间,运行PHP的环境也有所不同,目前主要分为:Nginx、apache、IIS以及其他服务器。下面分享如何去掉URL上的index.php字符,<span style="box-sizing: border-box; color: rgb(255, 0, 0);">记得最后要重启服务器,在管理后台清除缓存哦!</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&nbsp;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">【IIS服务器】</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">在网站根目录下有个 web.config 文件,这个文件的作用是重写URL,让URL变得简短,易于SEO优化,以及用户的记忆。打开 web.config 文件,在原有的基础上加以下代码片段即可。</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;rewrite&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;rules&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;rule name=&quot;Imported Rule 1&quot; enabled=&quot;true&quot; stopProcessing=&quot;true&quot;&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;match url=&quot;^(.*)$&quot; /&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;conditions logicalGrouping=&quot;MatchAll&quot;&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;add input=&quot;{HTTP_HOST}&quot; pattern=&quot;^(.*)$&quot; /&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsFile&quot; negate=&quot;true&quot; /&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsDirectory&quot; negate=&quot;true&quot; /&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;/conditions&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;action type=&quot;Rewrite&quot; url=&quot;index.php/{R:1}&quot; /&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;/rule&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;/rules&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;/rewrite&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&nbsp;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">以下是某个香港虚拟空间的效果:</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;configuration&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;system.webServer&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;handlers&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;remove name=&quot;PHP-7.0-7i24.com&quot; /&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;remove name=&quot;PHP-5.6-7i24.com&quot; /&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;remove name=&quot;PHP-5.5-7i24.com&quot; /&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;remove name=&quot;PHP-5.4-7i24.com&quot; /&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;remove name=&quot;PHP-5.3-7i24.com&quot; /&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;remove name=&quot;PHP-5.2-7i24.com&quot; /&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;add name=&quot;PHP-5.4-7i24.com&quot; path=&quot;*.php&quot; verb=&quot;*&quot; modules=&quot;FastCgiModule&quot; scriptProcessor=&quot;c:php.4php-cgi.exe&quot; resourceType=&quot;Either&quot; /&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;/handlers&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;rewrite&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;rules&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;rule name=&quot;Imported Rule 1&quot; enabled=&quot;true&quot; stopProcessing=&quot;true&quot;&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;match url=&quot;^(.*)$&quot; /&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;conditions logicalGrouping=&quot;MatchAll&quot;&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;add input=&quot;{HTTP_HOST}&quot; pattern=&quot;^(.*)$&quot; /&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsFile&quot; negate=&quot;true&quot; /&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsDirectory&quot; negate=&quot;true&quot; /&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;/conditions&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;action type=&quot;Rewrite&quot; url=&quot;index.php/{R:1}&quot; /&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;/rule&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;/rules&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">&lt;/rewrite&gt;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;/system.webServer&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;/configuration&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&nbsp;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">【Nginx服务器】</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">在原有的nginx重写文件里新增以下代码片段:</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">location / {</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">if (!-e $request_filename) {</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">rewrite ^(.*)$ /index.php?s=/$1 last;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">break;</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">}</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">}</span></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&nbsp;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">【apache服务器】<br style="box-sizing: border-box;"/>易优CMS在apache服务器环境默认自动隐藏index.php入口。<br style="box-sizing: border-box;"/>如果发现没隐藏,可以检查根目录.htaccess是否含有以下代码段:</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;IfModule mod_rewrite.c&gt;</div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;"><div style="box-sizing: border-box;">Options +FollowSymlinks -Multiviews</div><div style="box-sizing: border-box;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">RewriteEngine on</span></div><div style="box-sizing: border-box;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">RewriteCond %{REQUEST_FILENAME} !-d</span></div><div style="box-sizing: border-box;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">RewriteCond %{REQUEST_FILENAME} !-f</span></div><div style="box-sizing: border-box;"><span style="box-sizing: border-box; color: rgb(255, 0, 0);">RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]</span></div></div><div yne-bulb-block="paragraph" style="box-sizing: border-box; color: rgb(34, 34, 34); font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, &quot;Microsoft YaHei&quot;, FreeSans, Arimo, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, Roboto, Arial, sans-serif; font-size: 18px; white-space: normal;">&lt;/IfModule&gt;<br style="box-sizing: border-box;"/><br style="box-sizing: border-box;"/>如果存在,继续查看apache是否开启了URL重写模块 rewrite_module , 然后重启服务就行了。</div><p><br/></p>

CONTACT

联系重庆狐灵网络科技有限公司

鹤岗兴山服务咨询信息已同步到当前分站,便于搜索引擎和 AI 问答识别真实联系入口。

咨询电话15523356218

邮箱hulingkeji@qq.com

QQ190014322

微信foxl999