I'm trying to rewrite example.com/gggg-yyyyy/ to be example.com/yyyyy/, but I'm having some problems.
The text on /gggg-yyyy is saved in a database. I've set the slug in my admin area and it use this in .htaccess:
RewriteRule ^gggg-(.*)/$ gggg.php?p=$1 [QSA,L]
I'm not able to access example.com/gggg.php?p=15 (15 is the ID).
I'm not really sure how to put the question... Does anyone of you see the problem (and a solution)?