简体   繁体   中英

Manipulate permalinks in Wordpress

first of all. I know i should have some code you can see, but I have no idea what to do.
Is the following possible?
I want to add the word "layout" to my multisite subpages
My site goes like this

example.com/
example.com/services
example.com/layouts
example.com/about
example.com/contact

I have 3 layouts right now (more to come) - All the layouts are multisite subpages
example.com/first-layout
example.com/second-layout
example.com/third-layout

Is i possible to add "layout" before?
Ex. example.com/layout/first-layout
if people go to example.com/layout" they will be redirected to "example.com/layouts"

I don't have any code on this, but i've tried changing the link structure from the multisite settings in many ways.

Without knowing more about your installation, I think your best bet is to install the plugin, https://wordpress.org/plugins/custom-permalinks/

The basic idea is that it allows you to set path prefixes, like you are trying to do, inside of WordPress' backend. The alternative is figuring out which server you're using (likely either Apache or nginx) and hard coding some custom rules into the server itself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM