W
W
wartur2012-04-06 22:14:45
Yii
wartur, 2012-04-06 22:14:45

Attitude of developers towards naming directories with a dot and passing CNC variables?

Hello, I want to ask the attitude of web developers to different things, question 2: about a directory with a dot in the name and passing variables to the server in the form of a CNC.
1) One question.
Do you think this is quite acceptable or not from your point of view (I’ll answer right away, from the server’s point of view this is quite acceptable).
Example:
.ru/my.directory/ - is this normal or can I say do it at all or not do it?
or
.ru/my.html/ - and so?
or
.ru/my.pht/ - and so?
2) Question two
How would you pass variables in CNC form?
I saw how it was done in Zend
.ru/var1/value1/var2/value2
What do you think - how to pass true as in Zend or like this, for example, as you think is good, except for the impossibility of passing the "_" sign to value (everything is always normal with var - any variable names)
.ru/value1_var1/value2_var2/
go
.ru /var1_value1/var2_value2/
A couple of points about SEO optimization, I think that the option through "_" is preferable to the option with "/"
PS: not for the sake of holivar, but because it is very convenient for implementing one solution.
Thanks for answers.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
egorinsk, 2012-04-06
@egorinsk

1) I usually forbid directories starting with a dot (or ending with a tilde) in the server config, just in case.
2) it is better to make it easy for a human to understand, for example /abouts-us or /offers?sort=-date&page=120 or /offers/by-date/120. It makes no sense, including from the point of SEO, to assign unique URLs without parameters to different variants of the same page. By doing this, you only litter the index and reduce the efficiency of the search.

S
Stdit, 2012-04-06
@Stdit

My opinion:
1. Periods in sections are acceptable, as long as they are not confusing. Resource expansion can also mean that it can be changed for different clients, for example my.html -> my.xml -> my.json -> my.txt.
2. Since I consider the slash as a directory separator, the address should open if you remove everything after the slash. For example, if /product/phone/siemens/2000/, then /product/phone/siemens/ will also be opened and show all siemens phones.
3. Query logic variables are passed as arguments, for example /search?q=querystring
4. As far as I know, the main thing for SE is that it can highlight individual words. From the point of view of the fact that the slash is a hierarchy separator, it is better to use a dash or underscore.

L
Lakewake, 2012-04-07
@vedmaka

.ru/value1_var1/value2_var2/
why is that? after all, and so:
/product/phone/siemens/2000/
is
/value1/value2/value3/value4/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question