Htaccess + wordpress + dynamic pages

I have the standard wordpress permalinks set to

/%postname%/

which generates this in htaccess

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /subdomain/
RewriteRule ^index\\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /subdomain/index.php [L]

</IfModule>

I also have 4 dynamic pages which are currently

[noparse]http://www.domain.com/subdomain/wordpress-slug/?var=VARIABLE[/noparse]

the site owner doesn’t like this, he wants to see

[noparse]http://www.domain.com/subdomain/wordpress-slug-VARIABLE/[/noparse]

in the address bar.

My question is, how do I convert [noparse]http://www.domain.com/subdomain/wordpress-slug-VARIABLE/[/noparse] back to [noparse]http://www.domain.com/subdomain/wordpress-slug/?var=VARIABLE[/noparse] so that wordpress knows what to do next?

TIA

There are more pages than just those 4 dynamic pages I assume? In that case I’d need to know the names of the pages you want to do this for.
Also, can you change the URLs in the wordpress code to the new format? If not, it doesn’t make a lot of sense to do this.

Hi

I asked this on the wordpress forum as well and got the answer I needed

Thank you for replying though