You are getting a ‘page not found’ because it is exactly that, not found.
What you can do is create a page, for instance, called ‘locations’ then set it up like this
example.com/locations/the-hamptons => index.php?page_id=[id_of_locations]&filter=the-hamptons
Related Posts:
- add_rewrite_rule no longer working – possible https issue?
- Creating custom blog page template the right way
- How To Create A Paginated List Of All Categories On My Site?
- How to consolidate multiple static page templates into one dynamic one?
- Loading page content into a variable in template
- Capturing arbitrary semantic URL arguments
- How do I display the text inside the WP editor for a page with a custom template?
- add_rewrite_rule not working for page var
- Dynamically assign same page template to child page as parent
- Pagination Doesn’t Work
- How to pass a numeric id to a page template?
- How can I dynamically load another page template to provide an alternate layout of the posts?
- get url page template
- How to remove a parent theme template from Quick Edit?
- How to Set a Custom Template for Blog Posts
- Custom template for each page
- How can I have a static title on my blog page?
- page-slug goes to not found
- Change Theme from Plugin based on query_vars
- How do I add a body class to specific pages?
- How to list all titles of posts on a specific page?
- Customize edit.php Pages listing in dashboard to show only pages with a particular template applied?
- Programatically switch page template?
- How to create a page template that retrieves content from db?
- Change path of the page’s template
- Get page id of current page from template [duplicate]
- is_page_template returning false
- Why (and how?) is get_header() erasing all my stuff?
- get_pages — parent vs child_of?
- How to pass outside function to WP_REST_Request
- Custom query var rewriting with only variable
- WP-CLI not setting page template with page_template=”template-name.php”
- Create a page template with No Footer
- Custom rewrite_rules – only pass numbers and not alphabetic characters
- Register/Get sidebar?
- How to make text show up – new page template
- using the loop with a custom table
- Verify if the current page has at least one published child
- Custom taxonomy rewrite with query var returns %2F in URL
- add_filter(‘query_vars’) not working in custom template
- how to remove all body classes in wordpress
- Custom Post Type Archive template page not found
- Add #sidebar-2 to a custom page template
- wp_redirect goes to infinity loop
- What content to use for inserting images
- Capturing /page-name/[0-99999] in both template and number
- Display one post in different formats conditionally
- Custom Page Templates
- Rewrite Rule for Post Meta
- get_avatar() as backround image
- get_the_excerpt() inside WP_Query – link URL Incorrect
- Change text size and color for tags and category meta description on product page
- Strip from the_tags() output
- Contact template doesnt appear in page template options
- Template Redirect to /2015 to use page template
- Custom page template to sidebar/widget
- Custom post types and custom variables — add_rewrite_tag() not working
- How to set custom cookies in WordPress after a form is filled on a page
- Three step order form, how to go to next step
- Proper way to create custom static page
- How to display all child/sub pages from all parent pages?
- RSS feed for a custom page template
- How to allow WordPress to recognize a custom URL segment after a product URL and use a custom template?
- Add featured image as post header background image
- How Can I Create a Friendly Slug for a Dynamic Page?
- Blog template with different header to rest of site
- How to integrate custom HTML template in a premium wordpress theme?
- How to load page template according to the Searched Page
- Set page template automatically according to parent slug
- How to display the contents of URL1 when user visits URL2
- Static page won’t identify template
- Restrict Access to Logged-In Users Page Template
- Own query vars are not displayed
- page_template filter without a plugin
- Add additional templates to the templates drop down on add page menu [duplicate]
- Single page theme: Can I render other pages with their respective themes within another page?
- Passing query variables to a custom page template
- How to set title from page-template?
- Passing variables in the permalink structure on a custom post type
- create template for one page
- How do you create a default template?
- Cannot display default template after switching to custom
- Custom Page Template not working when site moved from subfolder
- change the Theme dynamically
- WordPress & External Page: 404 error in IE and some others
- How can I set full width page layout in a default post page?
- E-Commerce Products Page Sidebar Formatting
- Lead Generation with Cookies in WordPress
- trying to add custom landing page to Twenty Eleven- can’t get rid of Twenty Eleven header/container? [duplicate]
- Show tarifs page with menu a or b depending on menu of origin
- Fetching Image from other post/page with custom type
- How can I make different page templates for one category?
- wordpress header leaks into body in a specific template
- Display child page on parent
- Show page name in browser
- Animation as shown in the link
- How to show feature image, Title, Breadcrumb before Page in flatsome theme
- WordPress Page Slug with URL custom template
- Can wordpress search inside a custom page template?
- Extra HTML code added to my (on Chrome DevTools) but not on source code