I try to implement rewrite for topics (independent) via .htaccess, with this rules:
Text Formatted Code
URL REAL URL
~/sectionA -> /real_topicA
~/sectionA/topicX -> /real_topicX
~/sectionA/topicX/article1 -> /article1
Text Formatted Code
RewriteRule ^topicX /index.php?topic=topicX[L]
RewriteRule ^topicX/articleX /article.php?story=articleX [L]
But always applied the first rule, always redirect to /index.php?topic=topicX