WordPress Theme Creation Tutorial 11: Pseudo-Static Setup method

Source: Internet
Author: User

Set fixed link-custom structure:

/%post_id%.html

To set other link formats, refer to the following structure tags:
%year%: The year the journal was published, such as 2009
%monthnum%: The month of the journal publication, such as 05
%day%: The date the journal was published, such as 28
%hour%: Log publication Time (hours), such as 15
%minute%: Log publication Time (minutes), such as 43
%second%: Log publication time (seconds), such as 33
%postname%: article name.
%post_id%: Log ID, such as 423
%category%: The abbreviated version of the category name (add category aliases on the new category/edit interface). Nested sub-classifications appear in URIs as nested subdirectories. For operational reasons,%category% is not recommended as the starting part of a fixed link.
%tag%: The abbreviated version of the label name (add a label alias on the New tab/edit interface). For operational reasons,%tag% is not recommended as the starting part of a fixed link.
%author%: The abbreviated version of the author name.

Create the. htaccess file and upload it to the root directory (Linux host):

# BEGIN WordPress <  mod_rewrite.c>rewriteengine onrewritebase/rewriterule ^index\.php$-[L] Rewritecond%{request_filename}!-frewritecond%{request_filename}!-drewriterule. /index.php [L]</ifmodule># END WordPress

Then look at the foreground article address has not become HTML can.

WordPress Theme Creation Tutorial 11: Pseudo-Static Setup method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.