A
A
Ainur_B2020-06-07 11:01:47
htaccess
Ainur_B, 2020-06-07 11:01:47

How to write rules in htaccess?

Please tell me how to correctly describe the rule in htaccess so that "page" is not displayed in the address bar
https://site.ru/aluminums/page/alyuminevye-okna

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rusikus, 2020-06-07
@rusikus

Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{DOCUMENT_ROOT}/page/$1 -f
RewriteRule ^(.*)$ /page/$1 [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question