If I do it by typing /?id=some_text
in url then index.php script works as it shuld but if I do /some_text
then index.php always receives id to have value "index".
At first I had RewriteRule ^([^/]+) ?id=$1
but that returned "Internal Server Error" instead web page, then I changed it to RewriteRule ^([a-z]+) index.php?id=$1 and I stoped reciving error page but script started to receive "index" as value no matter what i typed in
This rule worked on local machine using MAMP, but when I uploaded it on server it stoped working.
.htaccess file for this folder only contains this rule
RewriteEngine on
RewriteRule ^([^/]+) ?id=$1