1
I am trying to use the .htaccess file to permanently forward URL requests for my articles.
I currently have duplicates of the content so that the search engines etc can find the material they have already referenced.
However I have read that search engines do not like duplicate content.
I am trying to use a .htaccess file to redirect individual articles.
# main (top-level) .htaccess file..
Options +FollowSymlinks
rewriteengine on
rewriterule /modules/articles/article.php?id=1 /modules/AMS/article.php?storyid=2 [r=301,nc]
I have tried placing this file in my root dir and my articles dir but neither seems to actually do anything.
I have tried using full urls also.
The redirect gets a little more complicated in that I have reorganised the articles so that the article IDs do not translate i.e. as you can see from the above example article ID 1 is now article id 2, but these changes become greater as the article numbers increase.
AND I want to continue using the articles module for about 5 existing articles and around 10 new ones, so I can't just redirect everything.
So first question, Does anyone know how to create a .htaccess to redirect dynamic pages (as I am starting to think the *php?id=* might be one of my main problems.
Second question is there another method of forwarding traffic from one module to another that would be better suited to my requirements?
Thanks for any help.
Dave