略過並前往主要內容
致電我們
服務專線和服務時間
預約回電

無須線上等候,提交預約我們將儘快回電。

預約回電
說明中心

瀏覽我們線上說明資源

說明

WordPress 說明

Activate WordPress permalinks with FTP

Using custom WordPress permalinks can improve search engine optimization(SEO) and make your website's URL more attractive for searches. WordPress permalinks are the permanent URLs for your posts and pages.

  1. You should always backup your site before making any changes.
  2. Connect to your hosting with FTP.
  3. Add URL rewrites using one of the following instructions depending on your hosting type:

    cPanel/Linux

    1. Locate the .htaccess file.

      Note: If you do not have a .htaccess file then you can create one with your FTP client, or create one on your local computer and upload it to the hosting account.

    2. Edit the .htaccess file, and add the following to the file if it is not already present:
      # BEGIN WordPress
      <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^index\.php$ - [L]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /index.php [L]
      </IfModulec>
      # END WordPress
    3. Save the file, and upload it to your hosting account.

    Plesk/Windows

    1. Locate the web.config file.

      Note: If you do not have a web.config file then you can create one with your FTP client, or create one on your local computer and upload it to the hosting account.

    2. Edit the web.config file, and add the following if it is not already present to the configuration section:
      <?xml version="1.0" encoding="UTF-8"?>
      <configuration>
        <system.webServer>
          <rewrite>
            <rules>
              <rule name="WordPress Rule" stopProcessing="true">
                <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" />
              </rule>
            </rules>
          </rewrite>
        </system.webServer>
      </configuration>
    3. Save the file, and upload it to your hosting account.

Next steps

More info