久久久久久久波多野结衣高潮 _中文字幕久久综合_欧美日韩中一区二区三区_精品国产一区二区三区蜜臀最_青青自拍视频成人免费观看_大伊香蕉在线精品视频75_国产又黄又大又粗视频_无码中文字幕不卡视频免费看 _日本无码精油按摩www视频 _成人黄色av播放免费

Single page

For different servers and virtual spaces, the environment for running PHP is also different, currently mainly divided into: Nginx, apache, IIS and other servers. Here's how to remove the index. PHP character from the URL. Remember to restart the server and clear the cache in the management background.

[IIS Server]

There is a web. config file in the root directory of the website. The function of this file is to rewrite the URL, make the URL short, easy to optimize by SEO, and the user's memory. Open the web. config file and add the following code fragments on the original basis.

<rewrite>

<rules>

<rule name= "Imported Rule 1" enabled= "true" 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>

The following is the effect of a Hong Kong virtual space:

<? XML version = "1.0" encoding = "UTF-8"?>

<configuration>

<system.webServer>

<handlers>

<remove name="PHP-7.0-7i24.com"/>

<remove name="PHP-5.6-7i24.com"/>

<remove name="PHP-5.5-7i24.com"/>

<remove name="PHP-5.4-7i24.com"/>

<remove name="PHP-5.3-7i24.com"/>

<remove name="PHP-5.2-7i24.com"/>

<add name="PHP-5.4-7i24.com" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="c:php.4php-cgi.exe" resourceType="Either"/>

</handlers>

<rewrite>

<rules>

<rule name= "Imported Rule 1" enabled= "true" 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>

</system.webServer>

</configuration>

[Nginx Server]

Add the following code fragments to the original nginx rewrite file:

Location / {

If (!-e $request_filename) {

Rewrite ^(. *)$/ index. php? S=/$1 last;

Break;

}

}

[apache server]

Yiyou CMS automatically hides index. PHP entries by default in Apache server environment.

If no hiding is found, you can check whether the root directory. htaccess contains the following code snippets:

<IfModule mod_rewrite.c>

Options + FollowSymlinks - Multiviews

RewriteEngine on

RewriteCond%{REQUEST_FILENAME}!-d

RewriteCond%{REQUEST_FILENAME}!-f

RewriteRule ^(*)$index.php/$1 [QSA, PT, L]

</IfModule>

If it exists, go ahead and see if Apache has opened the URL rewrite_module and restart the service.


    1. 
      
    2. <bdo id="la8za"><pre id="la8za"><del id="la8za"></del></pre></bdo>

    3. <pre id="la8za"></pre>
      <pre id="la8za"><label id="la8za"></label></pre><bdo id="la8za"><span id="la8za"></span></bdo>