A
A
Alexander2021-08-18 17:56:15
Apache HTTP Server
Alexander, 2021-08-18 17:56:15

Why is the rewrite not working?

RewriteCond %{REQUEST_URI} ^/catalog/$ [NC]
  RewriteRule ^(.*)$ /catalog/all/ [NC]

I expect /catalog/ to be rewritten to /catalog/all/ but it doesn't.
Why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2021-08-19
@shambler81

RewriteRule ^catalog/$ /catalog/all? [L,R=301]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question