N
N
Name19542018-11-03 17:00:34
htaccess
Name1954, 2018-11-03 17:00:34

htaccess folder name in get request?

Hello. Please tell me how to implement the following:
Request https://site.com/foldername/ and any other folders like https://site.com/foldername2/ and https://site.com/foldername3/ https://site.com/index.php?name=foldername and https://site.com/index.php?name=foldername2 respectively That is, to translate any request for a folder into a get request.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2018-11-03
@Name1954

RewriteRule ^(foldername\d*)/$ /index.php?name=$1 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question