Migrating a Joomla 3 component to Joomla 4 I have problems with getting Apache Server htaccess correctly configured to append query string from request to substituted URL - QSA flag. - It looks like this affects other Joomla components as well. Here an example of an RewriteRule which works in Joomla 3 but produces a 404 in Joomla 4:
RewriteRule ^testpage$ /index.php?option=com_content&view=article&id=1 [QSA,L]
It redirects but does not retain the original request when I change the rule to do so:
RewriteRule ^testpage$ http://mydomain.com/index.php?option=com_content&view=article&id=1 [QSA,L]
This is what the user sees in the browser's address bar: http://mydomain.com/index.php?option=com_content&view=article&id=1
Is it just me? What am I missing?
testpage
so we can see the before and after of what you have and what you want. I have a couple of ideas of what you might be trying to do but without some more details I would be just guessing at a solution.http://mydomain.com/testpage
should stay in the address bar of the browser, but it redirects to the underlying componenthttp://mydomain.com/index.php?option=com_content&view=article&id=7
.