After hours of research, reading Q&A, and rewriting my redirect code, I have not found a solution to what I thought would be a fairly easy thing to do.
I have this url http://example.com/page.php?slug=my-page-url
And this htaccess code
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)$ page.php?slug=$1 [L]
The result I would like is this http://example.com/my-page-url
Any idea what I am doing wrong? Thanks.