I'm having trouble using a rewrite rule with an index.php file in a subfolder.
I've successfully rewritten queries in the root using
RewriteEngine on
RewriteCond %{QUERY_STRING} &id=169
RewriteRule ^index\.php$ /index.php/169? [L,R=301]
Now I need to write some if a folder called SMF on the same system, for example "/SMF/index.php?topic=916.0"
I've tried putting a .htaccess file in the sub folder
RewriteEngine on
RewriteCond %{QUERY_STRING} &topic=916.0
RewriteRule ^index\.php$ /index.php/topic916? [L,R=301]
And I've tried putting this in my root .htaccess file
RewriteEngine on
RewriteBase /SMF/
RewriteCond %{QUERY_STRING} &topic=916.0
RewriteRule ^index\.php$ /index.php/topic916? [L,R=301]
I think I've got to be missing something simple. Any thoughts? This is my first post here so hopefully I followed all the guidelines right.