Good day to all. Imagine site addressing:
http://site.ru/?theme=questions http://site.ru/?theme=tags http://site.ru/?theme=users http://site.ru/?theme=badges The topic in the section, say, some divisions on the content yet, is an additional variable
http://site.ru/?theme=tags&tags=tema_1 http://site.ru/?theme=tags&tags=tema_2 Everything is simple and clear, we determine the value of the variable, we display the necessary content on the site. now about the incomprehensible:
http://site.ru/questions/ http://site.ru/tags/ http://site.ru/users/ http://site.ru/badges/ Then the puzzle begins, if you want to share the content more ...
http://site.ru/questions/vopros_1/ http://site.ru/questions/vopros_2/ http://site.ru/questions/vopros_3/ The first thing that comes to mind is a separate directory, and there still need to push. Htaccess. But then, let's say, you have to make a link to a style sheet tied to the site address, and not the directory.
The second - the address of the line is divided into parts. A certain part is equal to a certain variable.
Third, I don’t know something 8- (
- How is it possible to simply equate an address from a line of an address to a variable on php? Is it possible to do this only in php?
- Are there any advantages in the second method I described?
- Maybe I do not understand something?