For a page, change p=97
to page_id=97
or pagename=albums
. p
is for the post
post type.
I also suggest changing your query var to something more unique.
Related Posts:
- Tricky URL rewrite with custom values in url
- Add a query string to ALL links on site
- Add rewrite rule for rewrite endpoint
- Change Query String to pretty permalink
- 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
- How to use wp rewrite to hide form action url?
- Dynamic URL with rewrite rule not working
- How do I rewrite URL that has custom parameter
- Pagination appearing twice in URL after rewrite
- Need help with custom rewrite rule
- URL Rewrite for CPT single posts
- Using add_rewrite_tag to create urls for page sections
- 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?
- Blog installed in subdirectory but need to create pages in root. How to use permalinks?
- Dynamic URL, not a physical page within the database
- Prevent WordPress from automatically correcting URLs
- Taking a value from PHP_URL_PATH won’t work after WordPress 5.5 update
- Server (WordPress) redirects files that are not supposed to (using htaccess)
- Dynamically redirect page based on URL?
- Nginx rewrite rule conflict with WordPress permalinks rule
- Regionalised Content
- Custom URL rewrite to specific page template
- custom permalink/shortlink with base62 encoded post ID
- Plugin action rewrite rule – non_wp_rules
- Map alt domain to specific section of website w/o MU
- Have two different URLs show the homepage
- WordPress Redirects When a Query String Contains a Number
- How does WordPress determine if a paged query var is too high?
- Url Rewriting a dynamic wordpress page
- Adding special characters to slug?
- WP is ignoring .htaccess rewritten URL
- Rewrite ugly URL to clean URL
- Translate custom post type and taxonomy slug in URL?
- Rewrite: WordPress URL rewrite on Search
- WPML language switcher for custom rewrite rules
- How to write Rewrite rule for same path using Rewrite API?
- Changing URL scheme, mod_rewrite not helping
- Custom rewrite after the default term link URL
- Is WordPress API visible from PHP file called in htaccess
- Requested URL changes when using custom rewrite rule
- How can I reduce the number of rewrite rules?
- Capturing /page-name/[0-99999] in both template and number
- Keep requested/entered url with add_rewrite_rule
- Flushing rewrite rules
- Get wordpress installation folder
- Two sets of url one content?
- Create custom url which executes code (not render render a WordPress entity)?
- Rewrite author URL to example.com/u/{user_id}/{username}/
- Rewrite Rule for homepage not working correctly
- Adding Rewrite URL for Base + Children Separately
- How to customize sub-URLs in a wordpress website (.htaccess)
- How to change the displayed URL?
- 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
- WordPress numeric (yearly) page names / disable yearly archives
- Rewriting URL with child pages
- url redirect none www to www
- Change url to posts if they have custom tax only
- How to remove Base URL Duplication?
- Rewrite URL query string for all pages
- 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
- Rewrite URL based on form input
- Custom Rewrite for Profiles
- What is the proper way to use add_rewrite_rule to remove the (question mark)?
- Custom Rewrite Problem
- 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
- Wrong rewrite rules