I can't find any information on stackoverflow or google about the meaning of =$1. I get superficial information but nothing for beginners like me. What does it do?
If I have something like this:
www.website.com/profile.php?simon
Run Code Online (Sandbox Code Playgroud)
Does the name simon correspond to the $1 variable and why 1?
This is how I understand it:
(.*) profile/profile.php?id=$1The bold corresponds to:
www.website.com/profile.php?id=simonConverted with rewrite it becomes:
www.website.com/profile/simonAm I missing something here?
Edit:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}.php …Run Code Online (Sandbox Code Playgroud)