How do you understand the address bar shaped like a index.php/explore-page/colors/pink-color?

Source: Internet
Author: User
The link address previously contacted is the form: Index.php?key1=val1&key2=val2
But which of the Index.php/explore-page/colors/pink-color is the parameter name and which is the value?


Reply to discussion (solution)

This is someone else's frame route definition.
It depends on how the route is defined.

Explore-page/colors/pink-color
Explore page/color/Pink

How to explain it, the developer decides

I'm still a little confused.
I'm using a link in Joomla that's a lot of what that means.

Index.php/explore-page/colors/pink-color
This is the URL in path_info format
which
Index.php is the handler
/explore-page/colors/pink-color is the passed parameter
Each section represents a parameter, this is 3.

After the program has obtained the parameter string from $_server[' Path_info '), press/Cut the array
How to interpret the meaning of an array element, a developer will decide
You wrote the procedure, it's up to you.
That is, the parameters are interpreted by location

and Index.php?key1=val1&key2=val2
Parameters are interpreted by name

Index.php/explore-page/colors/pink-color
This is the URL in path_info format
which
Index.php is the handler
/explore-page/colors/pink-color is the passed parameter
Each section represents a parameter, this is 3.

After the program has obtained the parameter string from $_server[' Path_info '), press/Cut the array
How to interpret the meaning of an array element, a developer will decide
You wrote the procedure, it's up to you.
That is, the parameters are interpreted by location

and Index.php?key1=val1&key2=val2
Parameters are interpreted by name



This is a lot clearer thank you moderator.

Index.php/explore-page/colors/pink-color
It's rewrite.
Index.php?action=explore-page&colors=pink-color

What do you want to see? Rewrite's.

  • 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.