J
J
javanub2015-10-02 13:17:25
Apache HTTP Server
javanub, 2015-10-02 13:17:25

Where is the mistake in RewriteRule?

site.ru/edit.php?id=92
I want to
site.ru/edit/92
write like this

RewriteRule ^([a-z]+)/([0-9]+)/$ _module/$1.php?id=$2

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Inchin ☢, 2015-10-02
@In4in

Maybe you need to escape slashes?

RewriteRule ^([a-z]+)\/([0-9]+)\/?$ _module/$1.php?id=$2

D
Defman21, 2015-10-02
@Defman21

RewriteRule ^([a-z]+)/([0-9]+)/?$ _module/$1.php?id=$2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question