Set / as URL Pattern to Match
-
Hi,
I have multiple Virtual Posts, each is off course with unique “Airtable Field to be used as post_name”.
To be exact there is two Virtual Posts. One with Cities and one with Company Names.
Instead of having these urls:
https://www.domain.com/cities/xyz
https://www.domain.com/company/abcI would like to achieve:
https://www.domain.com/xyz
https://www.domainm.com/abcBut when I am trying to use
^/(.*)/?
as URL Pattern to Match only one of the Virtual Posts are sucessfully displaying.The workaround today is to use this URL Pattern
^cities/(.*)/?
and^company/(.*)/?
but I would really like to have the pages displaying right after https://www.domain.com/I have tried playing around with https://regex101.com but not being able to achive the code that I need for this to work! Any help on this would be much appreciated ??
- The topic ‘Set / as URL Pattern to Match’ is closed to new replies.