What should I do in the address bar like index. php/explore-page/colors/pink-color?

Source: Internet
Author: User
What should I do in the address bar like index. phpw.e-pagecolorspink-color? The link address I used to contact is like index. php? Key1 = val1 & key2 = val2
But in index. php/explore-page/colors/pink-color, which is the parameter name and the value?


Reply to discussion (solution)

This is a well-defined framework route.
It depends on how the route is defined.

Effece-page/colors/pink-color
Discussion page/color/Pink

The developer determines how to explain it.

Not quite clear
I am using many links in joomla. what does that mean?

Index. php/explore-page/colors/pink-color
This is a url in path_info format.
Where
Index. php is a processing program
/Explore-page/colors/pink-color is the passed parameter
Each section represents a parameter. here there are three parameters.

After obtaining the parameter string from $ _ SERVER ['path _ info'], the program splits the string by/into an array.
Developers can determine how to explain the meaning of array elements.
The program you wrote is up to you
That is, 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 a url in path_info format.
Where
Index. php is a processing program
/Explore-page/colors/pink-color is the passed parameter
Each section represents a parameter. here there are three parameters.

After obtaining the parameter string from $ _ SERVER ['path _ info'], the program splits the string by/into an array.
Developers can determine how to explain the meaning of array elements.
The program you wrote is up to you
That is, parameters are interpreted by location.

And index. php? Key1 = val1 & key2 = val2
Parameters are interpreted by name.



Now I know more about it. thanks to the moderator ..

Index. php/explore-page/colors/pink-color
Estimate? Is rewrite
Index. php? Action = effece-page & colors = pink-color

? What do you want to see ?? Rewrite.

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.