Hi,
I have a few URLs with query strings like this:
index.php?id=1
index.php?id=2
And I'd like to redirect each ID to their own SEO friendly URL defined in my .htaccess file (only a few IDs so it shouldn't slow the site). I've tried a code (displayed below) and it does the redirect to the new file name but the new file returns a "404 not found" error. Here's the code I've been trying:
Code:
RewriteEngine On
Options +FollowSymLinks
RewriteCond %{QUERY_STRING} ^id=1$
RewriteRule ^index\.php$ /seo-friendly-url/
Is there something wrong with the code or do I need to add something else to it?