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.