Rewrite wordpress url in linux

Source: Internet
Author: User
In linux, the current url of urlwordpress rewrite wordpress is xxxxxxx? P123 I want to rewrite this url to xxxxxxxabout and do not want to use the worpress url format option. htaccess rewriting, currently. the htaccess file is empty. please help me explain the principle and write down how to do it. thank you! ----- Rewrite the wordpress url in linux
The current wordpress url is
Http: // xxxxxxx /? P = 123
I want to rewrite this url
Http: // xxxxxxx/about/
Do not want to use worpress's own url format option
Should I rewrite it with. htaccess? Currently, the. htaccess file is empty.
Thank you for explaining the principle and writing down the specific instructions!
------ Solution ----------------------
Does wordpress have the built-in method get_the_ID?
You can use this to obtain the article id.
You can use get_pages (); to obtain the number of pages.
Print_r (get_pages ());

Since you have used wordpress, of course, why do you need to write $ _ GET on your own.

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.