A
A
aleksey48672019-03-26 11:18:32
URL Handling
aleksey4867, 2019-03-26 11:18:32

How to make a redirect to .htaccess URL with GET?

Please tell me how to make a 301 redirect from this URL (Joomla):
xxx-xx.com.ua/component/content/article?layout=edi...
to this URL:
https://xxx-xx.com. ua/posluhy-z-reyestratsiyi-tran...
A simple redirect in this case, as I understand it, does not work.
Will this construction be correct:
RewriteCond %{QUERY_STRING} ^layout=edit&id=88$ [NC]
RewriteRule ^dir/index\.php$ https://xxx-xx.com.ua/posluhy-z-reyestratsiyi-tran. .. [R=301,L]
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2019-03-26
@shambler81

https://donatstudios.com/RewriteRule_Generator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question