Hi,
My current file names uses a Rewrite to get the files to be of the type: news-1234.htm where 1234 is the table id.
RewriteRule news- (.*).htm$ article.php?id=$1
After many hours of hard work I was finally able to get the file name to be of the type: news-my-long-file-name.htm by creating a urlTitle column and using another Rewrite.
RewriteRule news- (.*).htm$ article.php?urlTitle=$1
In order not get a 404 from links to the site I could maintain both rewrites and only change the new one to article2.php (a different page that will have a $urlTitle=$_GET['urlTitle']
The problem wit this solution is that both links: news-1234.htm and news-my-long-file-name.htm will take to the same file thus creating duplicates of all the current articles and I am not sure it would be a good idea from a SEO perspective as some search engines do not like multiple pages with similar content.
The ideal solution would be a permanent 301 rewrite but after a long time thinking I don’t know how to do it. How do I send news-1234.htm to news-my-long-file-name.htm if both files are actually rewrites and each is based on different columns? Can this actually be done?
Thanks
Tim