Joomla 3.10 -> 4 rewriteRule problem

Be informed that this forum is not an official support forum for Joomla! 4.0. Any issues regarding Joomla! 4.0 must be reported at https://issues.joomla.org/.

Joomla 4.0 is still in Beta stage. This forum should be used for sharing information about Joomla! 4.0.

Moderator: ooffick

Forum rules
Locked
neofila
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Fri Oct 30, 2009 1:15 pm

Joomla 3.10 -> 4 rewriteRule problem

Post by neofila » Wed Aug 18, 2021 3:33 pm

Hi
I am starting converting all my modules and plugins in order to be compatible with Joomla 4
However, some of my rewrite rules are not working, they are working with joomla 3.10

For example

RewriteRule ^(en/|)find/book/([124])/([A-z]{3}[0-9]{4}[A-Z]{0,1}) /index.php?option=com_content&view=article&id=99&bookdet=$3&bookses=$2&extra=1 [L]

this is going in loop

If I and a redirect the rewriterule, therefore, [L,R] this is working, however, I am loosing the SEO and all the module associated with the URL since my URL is modified with index.php....

I also try to take the htaccess from the 4 and add only this rules in the custom redirect session, same problem

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12785
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Joomla 3.10 -> 4 rewriteRule problem

Post by brian » Wed Aug 18, 2021 4:39 pm

no modules can be associated with that url in any version of joomla ever. it is the itemid that identifies that association and your url doesnt have one
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

neofila
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Fri Oct 30, 2009 1:15 pm

Re: Joomla 3.10 -> 4 rewriteRule problem

Post by neofila » Wed Aug 18, 2021 5:11 pm

Sorry you are right, I am referring an article and from the article the module with loadposition


Locked

Return to “Joomla! 4 Related”