N
N
NO2017-04-24 10:33:35
htaccess
NO, 2017-04-24 10:33:35

How to make a substitution in htaccess?

There is a "/produse/" category added to wp-admin.
It is necessary to create the path "/produse/landing_name/lang/index.html"
But when I create a folder in the root "produse", of course, the category is ignored and the "physical" folder is opened.
How to avoid it?
I came up with this method, but it doesn't work:
.htaccess:
RewriteRule ^produse/test(/?.*)$ /produse_landing/test$1 [L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2017-04-24
@shambler81

RewriteCond %{REQUEST_FILENAME} !-d

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question