Y
Y
yanchuga2015-10-25 17:47:59
PHP
yanchuga, 2015-10-25 17:47:59

RewriteRule for CNC does not work correctly. Guys who knows the answer?

Hello everyone, just now I was checking the operation of the rule for auto changing the url through the .htaccess file
de66a614a9e549f68f0171b9ce70e9d8.png
. For some reason, it does not work on the hosting. All I need is to change the link like this:
sait.ru/r1/index_feed.php?id=9
TO
sait.ru/r1/post/9.html
The rule was written like this:
RewriteEngine on
RewriteRule ^post/([-a-z0 -9]+.html)$ index_feed.php?id=$1 [L]
Tell me guys who knows why it doesn't work?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Defman21, 2015-10-25
@Defman21

Curve regular. The point needs to be screened. (\.)

S
ShamblerR, 2015-10-26
@ShamblerR

And I thought that ?id=9 is a get request.
and that = google.ru "redirect with get request"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question