I am using StaticXT to serve up some php pages that would be difficult to incorporate into Mambo properly at the moment. The problem I have is with the standard htaccess file.
I need to divert some of the old pages into the new urls. So I used redirect permanent for a page that looks like mypage.php to the new long staticxt/mambo page - no problem it works fine.
However, if I need to do the same thing with a page that has parameters like mypage.php?filter=Books then I appear to not be able to use redirect, or I am writing it incorrectly. If I try to use a Rewrite rule, it has no effect because the default is looking to send everything unknown to the index page. I have actually been trying to solve this problem for a week with posts on other (ahem) forums, without a single answer. So I am hoping that this forum is friendlier, more knowledgeable, or at least can tell me that I am stupid, or I am asking the wrong question. The htaccess file at the moment looks something like this
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
#Dodgy rule
#RewriteRule ^/myotherpage\.php?filter=book$ /component/option,com_staticxt/Itemid,41/xt_item,1/staticfile,myotherpage.php/filter,Book
#Redirection of old files
redirect permanent /compweb.php http://www.mysite.com/index.php?option=com_staticxt&staticfile=mypage.php&Itemid=41 As you can see I have commented out the dodgy rule.
By the way, the rule I am having the problem with is shown with a SEF url. JUst trying to keep working on!
Thanks in anticipation!