H
H
hello_world_6662020-06-23 17:25:42
htaccess
hello_world_666, 2020-06-23 17:25:42

How to parse htaccess url?

Hello, how can I parse a url like this: site.ru/random/ so that the redirect is index.php, and the "random" part becomes a get parameter? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-06-23
@hello_world_666

RewriteEngine on

RewriteRule ^([^/]+)/$ index.php?x=$1 [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question