I want this:
https://example.com/something
From this:
https://example.com/?q=something
I found many similar questions stackoverflow, but none of them worked for me, so please help me.
For example i tried this:
RewriteEngine On
RewriteRule ^(.*) index\.php?q=$1
with this php code:
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Document</title>
</head>
<body>
<?php echo $_GET['q'] ?>
</body>
</html>
but it's always shows "index.php"