A
A
Alex666Devil2017-03-14 18:49:45
Joomla
Alex666Devil, 2017-03-14 18:49:45

How to set up a 301 redirect in Joomla?

Hello! the essence of the problem, as it were, is as follows. it seems to be registered in .htaccess, but it doesn’t make a fuss:
you need links like
site.ru/index.php/2-uncategorised.html?start=40
site.ru/index.php/produktsiya/2- uncategorised.html...
cut off the ends so that they refer to
site.ru/index.php
site.ru/index.php/produktsiya - that is, cut off 2-uncategorised.html?start=
this piece is attributed to many urls, for example site.ru /index.php/kontakty/2-uncategorised.html, but you just need site.ru/index.php/kontakty
wrote the following
RewriteCond %{QUERY_STRING} ^2-uncategorised.html?start= [NC]
RewriteRule (.*) $1 ? [R=301,L]
but it doesn’t work. maybe I’m writing it wrong? like before that he wrote RewriteEngine on
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Goryachev, 2017-03-14
@webirus

Admin, General Settings, Enable SEF and URL Redirect.
This problem is solved without .htaccess, by built-in Joomla tools.
If these settings work correctly, there will be no tails and /index.php/.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question