sixf00t4
07-13-2010, 02:33 PM
I switched from one blogging platform to another, but the post IDs are the same between the two. so where:
RewriteRule ^article([1-9][0-9]*).* modules.php?name=News&file=article&sid=$1 [L]
made URLs like /article123.html point to modules.php?name=News&file=article&sid=123
With the new blogging platform, I want to direct the article123.html requests that exist in search engines to the new platform system, which would be ?p=123
so why won't this work?
RewriteRule ^article([0-9]*).*$ ?p=$1 [L]
RewriteRule ^article([1-9][0-9]*).* modules.php?name=News&file=article&sid=$1 [L]
made URLs like /article123.html point to modules.php?name=News&file=article&sid=123
With the new blogging platform, I want to direct the article123.html requests that exist in search engines to the new platform system, which would be ?p=123
so why won't this work?
RewriteRule ^article([0-9]*).*$ ?p=$1 [L]