htaccess redirect based on URL stored in database
snippet in htaccess

htaccess redirect based on URL stored in database

user5111

RewriteRule ^([A-Za-z0-9-])$ /advert.php?id=$1 [L]