S
S
surrealisticPillow2018-11-28 15:50:23
htaccess
surrealisticPillow, 2018-11-28 15:50:23

The rule in .htaccess does not work (CNC settings). Why?

I'm trying to make it so that when you enter the following in the address bar:
site.ru/78
There was a redirect to
site.ru/folder/handler.php?id=78
Here's what I write in .htaccess at the root of the site (DOES NOT WORK):
RewriteEngine On
RewriteBase /
RewriteRule ^([0-9]+)$ folder/handler.php?id=$1 [L]
Help with advice.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2018-11-28
@shambler81

RewriteRule ^([0-9]{.+})$ folder/handler.php\?id=$1 [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question