V
V
Vladislav2017-03-21 12:44:13
htaccess
Vladislav, 2017-03-21 12:44:13

Htaccess redirect after deleting multilingual?

Hello. A simple task, I removed the multilanguage on 1 site, now I can’t write the correct redirects.
There were urls like: www.site.com/en/home , www.site.com/pl/home , you need to redirect to www.site.com/home
Site to WordPress. Tried like this:

RewriteEngine On
RewriteCond %{REQUEST_URI} /pl/
RewriteRule pl/ / [L]

But something doesn't work. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2017-03-21
@shambler81

https://klondike-studio.ru/blog/snipet-for-htaccess/
see here there is an example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question