N
N
NikSIk312019-03-07 16:20:34
htaccess
NikSIk31, 2019-03-07 16:20:34

Htaccess how to change url with get parameter?

Please tell me how it can be done, and is it possible at all: it is necessary that
learn-html5/lesson
be replaced by
learn-html5/overview
or
learn-html5/basic
when following a link with a get parameter corresponding to
sitename/leart-html5/lesson?id=basic

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2019-03-07
@NikSIk31

RewriteEngine On
RewriteRule ^(learn-html5)/(basic|overview)$ /$1/lesson/index.php?id=$2 [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question