I have a page that is generated dynamically based on a query parameter, which I wish to "mask" as a normal "pretty" permalink.
Right now I'm using:
https://example.com/dynamic-page/?parameter=xxx
and I wish to achieve this:
https://example.com/dynamic-page/xxx/
All this while using the following WP permalink structure:
/blog/%postname%/
So, currently, this is the WP part of my .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
The dynamic-page does not have any children, so there is not already some permalink structure "below" it. All this without messing with WP's standard permalink functionality.