D
D
d0ublezer02020-07-14 10:15:13
Joomla
d0ublezer0, 2020-07-14 10:15:13

Why does RewriteRule not work in Joomla + Virtuemart?

Strange behavior: we changed aliases for virtuemart categories, rewrote htaccess to redirect to new addresses, but this does not happen.

Here is an example old address:
https://www.etalon-tara.ru/catalogue/yomkosti_dlya...

new address:
https://www.etalon-tara.ru/catalogue/yomkosti-dlya...

Both work like not strange.
Here are the rules in htaccess:

RewriteRule ^vyedra_i_kanistry/(.*)/$ /vyedra-i-kanistry/$1/ [R=301,NC,L]
RewriteRule ^yemkosti_dlya_vody/(.*)/$ /yemkosti-dlya-vody/$1/ [R=301,NC,L]
RewriteRule ^yomkosti_dlya_musora/(.*)$ /yomkosti-dlya-musora/$1 [R=301,NC,L]


Stock SEF and CNC included.
More special means to manage addresses are not used.
The redirect plugin is disabled.

What have I done wrong?

At the same time, the modified section itself does not open, but redirection does not occur either:
https://www.etalon-tara.ru/catalogue/yomkosti_dlya...

It seems that Virtuemart interferes with the processing of addresses and tries to "please" by finding nested goods and categories.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Gnevyshev, 2020-09-22
@iResource

There is an opinion that Virtuemart interferes with the processing of addresses

Absolutely fair opinion)
In the VM configuration, look at the setting "Enable VirtueMart handling of 404 errors" (Settings - Store tab). Try to turn it off and check your tests ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question