I'm attempting to add a custom RewriteRule in the default htaccess file in Joomla 3, but not having any luck getting it to work.
The end goal is to create a URL with a wildcard subpage, like site.com/features/*, which always loads the base page /features/
In my tests, this rule works properly:
RewriteRule ^features\/?(.*)$ "http://%{HTTP_HOST}/index.php/features" [R=302,L]
However, once I change my flag from R to PT, it gives me a 404:
RewriteRule ^features\/?(.*)$ "http://%{HTTP_HOST}/index.php/features" [PT]
I have tried multiple variations of the rewrite syntax, trying with and without the index.php base, also with RewriteBase and no protocol+host.
In all tests, a 301/302 redirect will work properly, and a passthrough will 404. This tells me it's matching and firing the rule properly, but it's not rewriting on the PT request back to the server.
I'm curious if anyone else here has done this before and can point me in the right direction of what to try next.
Thanks,
[PT,L]
index.php/features
that's truly causing the 404. I can't be certain though.