Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/milliephanillie/otslr-hp-routes/archive/refs/heads/master.zipSEO-Friendly URLs for HivePress
Sometimes in HivePress we want SEO-friendly URLs on our listing pages.
Depending on your setup—and whether you're using RentalHive, ExpertHive, or another HivePress theme—you may want to configure your directory URLs like this:
/services/{category-name}/{state-name}/{county-name}/{city-name}
Additionally, pagination should be supported for each level:
/services/{category-name}/{state-name}/page/{page-number}
/services/{category-name}/{state-name}/{county-name}/{city-name}/page/{page-number}
If you're offering a niche use case—like renting out music studios—you might prefer a custom structure like:
/studios/{category-name}/{state-name}/{city-name}
For reference, popular platforms use structures like:
- Airbnb:
/rooms - Vrbo:
/vacation_rentals/{state-name}
Why Not Just Use WordPress Rewrite Rules?
While WordPress lets you define simple rewrite rules, doing so gives you no control over the template. That’s a problem when you want to:
- Add unique H1 tags or meta descriptions
- Display custom header content or layout changes
- Add contextual elements like “Nearby Cities” or “Related Listings”
Why This Plugin Exists
This plugin gives you full control over both:
- The URL structure
- The template rendering logic
Use it to create clean, user- and SEO-friendly URLs in HivePress with flexibility to customize templates and page data as needed.