I want to rewrite CMS page url to custom url.
For eg. CMS page url is "/result/?q=test"
and rewrite url should be "/demo/test"
For this I'm trying to below htaccess rule
RewriteRule ^demo/?$ /result/?q=$1 [QSA,L]
Url "/result/?q=test"
is working, but the url "/demo/test"
is showing 404 not found.
What rule should I use this?