S
S
Sergey2015-12-28 13:05:57
Apache HTTP Server
Sergey, 2015-12-28 13:05:57

What to use instead of a domain for a redirect?

There is a code

RewriteRule ^catalog/(.+)$ http://site.ru/$1 [R=301,L]
removes the catalog from the url
so that it works not only for site.ru but also for *.site.ru Tell me
, how can I change it so that it works like that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Zelensky, 2015-12-28
@gangstarcj

try leaving only the slashRewriteRule ^catalog/(.+)$ /$1 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question