F
F
freshik3122018-09-23 22:29:41
htaccess
freshik312, 2018-09-23 22:29:41

How to form htaccess correctly?

Hello !
I know that there is a lot of this on the Internet, but everything that I tried did not work ..
What to write in htaccess, so that ..
.. do not indicate .php in the url at the end and hide get requests, so that site.ru?id=123 looked like site.ru/123

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai Chuprik, 2018-09-23
@choupa

RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ myscript.php?id=$1

S
ShamblerR, 2018-09-24
@ShamblerR

Read what is CNC and how it is made

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question