[Tutorial] how to configure access similar to http://www.domain.com/name

Source: Internet
Author: User
[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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.