[Tutorial] how to configure a program similar to idea. For example, http://www.domain.com/nameor http://www.domain.c [Tutorial] how to configure access similar to http://www.domain.com/name
Brief requirement description:
For example, if you register a user whose English name is name, an accessible address is automatically configured in the corresponding directory.
For example, http://www.domain.com/nameor http://www.domain.com/users/name.
The environment is standard LAMP.
If your requirements are http://www.domain.com/proxy.php/name, it will be easy.
However, the user now asks not to see the ". php" in proxy. php, so I don't know how to get it.
Please advise.
------ Solution --------------------
Pseudo-static
RewriteCond % {QUERY_STRING} ^ (. *) $
RewriteRule ^ (. *)/proxy/(\ d +) $1/proxy \. php/$2 [L]
// You do not need to include. php when you enter the url again. The Jump is from forward to back, more hops