.htaccess - Redirect query strings to new URL
I have a few URLs with query strings like this:
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:
Can you give an example of your user friendly URL?
I believe you want to redirect and not just rewrite. You can add 301 redirect like this which might help.
RewriteRule ^index\.php$ /seo-friendly-url/ [R=301]
For more details:
I Could screen scrape the site and get the html, but i cant get the links out of the html if you have any better ways than what i did please tell me.find more information
|All times are GMT +1. The time now is 09:16 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.