I moved an old site to processwire and want to redirect the old URLs with php-filenames to the new folders via .htaccess to match the new structure.
I tried:
RedirectMatch 301 /filename.php http://example.com/filename/
The Browser end up like this: http://example.com/filename/?it=filename.php
Its interfering with that Processwire .htaccess rule
# -----------------------------------------------------------------------------------------------
# Pass control to ProcessWire if all the above directives allow us to this point.
# For regular VirtualHosts (most installs)
# -----------------------------------------------------------------------------------------------
RewriteRule ^(.*)$ index.php?it=$1 [L,QSA]
If i comment that out the redirect in the URL is ok, but every Klick on a websitelink is showing the homepage.
Any idea how i can fix this?
Thanks
Andreas