A
A
Alexander Orlov2018-08-16 13:13:18
htaccess
Alexander Orlov, 2018-08-16 13:13:18

How to add "global" page prefix in wordpress?

There is a simple site on woprdpress. It is necessary to add a certain prefix to absolutely all urls at the beginning so that wp itself ignores it, but so that its value can be obtained. Depending on this parameter, different information will be displayed on all pages of the site
Now regular URLs:
Site.ru/category_name/post_name
Site.ru/page_name Required
:
Site.ru/ prefix_name_1 /category_name/post_name -> at this address you need to open the old page Site.ru/category_name/post_name, and the prefix = prefix_name_1
parameter got into some php variable Site.ru/ prefix_name_2/category_name/post_name -> at this address it is necessary that the old page Site.ru/category_name/post_name opens, and the parameter prefix = prefix_name_2 gets into some php variable

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question