Instead of using fixed php file you can use the custom wordpress templates
create a custom template file and give it a name such as custom template name is step2.php and Step2
/*
Template Name: Step2
*/
The contents of the custom template file is similar to the content of the file on your step2.php
Or you can use ajax to request but still could not hide the file path step2.php
Related Posts:
- Why does wordpress still strip my query var?
- WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)
- Tricky URL rewrite with custom values in url
- Add a query string to ALL links on site
- Add rewrite rule for rewrite endpoint
- add_rewrite_rule not working for language specific characters
- How to add custom variable in url without redirect?
- How to building pretty URLs to reflect category hierarchy?
- Rewrite custom post type URL parameters
- Help with Rewrite Rule for Custom Post Type with Query String
- Change pagination url format
- Per Page Permalink Structure for Page Post Type
- Rewrite /category/cars into /topics/cars
- custom wordpress rewrite
- Dynamic URL with rewrite rule not working
- How do I rewrite URL that has custom parameter
- Pagination appearing twice in URL after rewrite
- URL Rewrite for CPT single posts
- Rewrite URL based on form input
- Rename page URL
- WordPress post-type create url rewriting
- Use a template file for a specific url without creating a page
- Change the “page” slug in pagination
- Understanding add_rewrite_rule
- Rewrite Rules for Multiple (more than 2) Taxonomies
- add_rewrite_rule not loading correct page nor getting variables
- SEO Friendly URLs for my plugin categories
- How to create a specific frontend URL (not a Page) from a theme or plugin?
- WordPress URL rewrite regex
- Blog installed in subdirectory but need to create pages in root. How to use permalinks?
- WordPress keeps writing rewrite rules to .htaccess
- WordPress Rewrite
- Taking a value from PHP_URL_PATH won’t work after WordPress 5.5 update
- Custom rewrite rule for backend/admin?
- Allow single quote in URLs
- How to have multiple rewrite endpoints in the same URL?
- add_rewrite_rule is not taking effect in WordPress? .htaccess file doesn’t update
- custom permalink/shortlink with base62 encoded post ID
- Add specific word to default page permalink
- Plugin action rewrite rule – non_wp_rules
- Map alt domain to specific section of website w/o MU
- Rewrite rule to load images from production does nothing
- Custom query_vars and parse_request on wp-admin
- Have two different URLs show the homepage
- Creating a dynamic URL structure
- My WP_options db rewrite_rules Does Not Work
- How to disable URL rewriting for specific URLs?
- Adding special characters to slug?
- Custom rewrite_rules – only pass numbers and not alphabetic characters
- WP is ignoring .htaccess rewritten URL
- Rewrite ugly URL to clean URL
- Rewrite wp-login.php URLS to static pages?
- Changed pagination URLS to use p= instead of paged=
- Translate custom post type and taxonomy slug in URL?
- Rewrite: WordPress URL rewrite on Search
- React Router with WordPress
- How to write Rewrite rule for same path using Rewrite API?
- URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”
- URL Rewrite and add_query_var not working
- How to add custom rewrite rules and point to specific templates
- Custom rewrite after the default term link URL
- How can I reduce the number of rewrite rules?
- Get wordpress installation folder
- Name page template properly
- Two sets of url one content?
- One off rewrite for single post-type slug (show normal page with same URL instead)
- Adding Rewrite URL for Base + Children Separately
- How to customize sub-URLs in a wordpress website (.htaccess)
- WP redirect rule doesn’t work
- Rewriting a date hierarchy into a ‘yyyy-mm-dd’ slug
- URL problem: www.sitename.com/blog and www.sitename.com/learn using same WP installation
- custom url – add attachment’s id or name after post
- Make the home page’s slug visible in the browser’s URL bar
- dynamic URL rewrite
- Rewrite only if no other matching page is found
- How can I add a vanity URL for admin-ajax.php Calls?
- Remove part from dynamic url and redirect
- Rewrite rule can’t get the ID from rewrited
- How to Update / Change URL when Popup Modal Loads?
- Pretty URL via Rewrite
- URL rewrite problem in WordPress plugin
- WordPress numeric (yearly) page names / disable yearly archives
- Usw add_rewrite_rule to display frontpage on specific page
- Rewriting URL with child pages
- url redirect none www to www
- Rewrite URL to get rid of wp-content etc and change URL
- Change url to posts if they have custom tax only
- How to remove Base URL Duplication?
- Need help with custom rewrite rule
- WordPress doesn’t remember my custom rewrite rule
- Custom urls in WordPress involving page slugs
- how to change some of the rules in the database
- Rewriting URLs with query strings and preserving them
- get_permalink is getting old rewrite rule
- Custom Rewrite for Profiles
- How to Rewrite WordPress URL for a Plugin
- How to prevent URL-modification when page title contains digits only?
- How do I display a friendly URL link in the frontend?
- WP Job Manger change jobs url (NOT slug)
- Please give me the rewrite rules for my ugly urls