075-845-490 | 097-165-2449
Line ID: @hostnakhonitech
🎉 โปรโมชั่นพิเศษ! ลด 10% สำหรับลูกค้าใหม่
NakhoniTech
075-845-490
support@NakhoniTech.com

แก้ปัญหาลิงก์ภาษาไทย WordPress บน IIS หรือ Parallels Plesk Print

  • 2

  1. เปิดไฟล์ web.config
  2. ก็อปโค้ดด้านล่างไปวางแทน
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
    <directoryBrowse enabled="false"/>
    <rewrite>
    <rules>
    <rule name="Plesk. WordPress redirect wpConfigRule " stopProcessing="true">
    <match url="^wp-config.php$" ignoreCase="false"/>
    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden"/>
    </rule>
    <rule name="wordpress" patternSyntax="Wildcard">
    <match url="*"/>
    <conditions>
    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
    </conditions>
    <action type="Rewrite" url="index.php?requesturi={URL}"/>
    </rule></rules>
    </rewrite>
    </system.webServer>
    </configuration>
  3. แก้ไขไฟล์ index.php โดยเพิ่มโค้ด
    $_SERVER['REQUEST_URI'] = isset($_GET['requesturi']) ? $_GET['requesturi'] : '/';

    บรรทัดบนสุดดังภาพด้านล่าง
    11012017

เป็นอันเรียบร้อยครับ

บทความจาก cowmein.com


Was this answer helpful?

« Back