A
A
Alexander2016-07-29 15:45:19
Apache HTTP Server
Alexander, 2016-07-29 15:45:19

Redirect not working, how to do it right?

Good afternoon. What I can not understand why it does not work, tell me please. The situation is such
before the links were of a similar plan: site.ru/catalog/rubrika
Now there is no "catalog"
Wrote this redirect

RewriteCond %{REQUEST_URI} !\.(css|js|png|gif|jpeg|jpg|ico|woff|ttf)$
RewriteRule catalog/(.*)$ http://site.ru/$1 [R=301,L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Minisol, 2016-07-29
@Dil0ng

for example like this:
tested here: htaccess.mwl.be

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question