[Second part is alias and is ignored ...only ID is used] Contenu dupliqué et requêtes étranges

More
6 years 9 months ago - 6 years 9 months ago #68131 by seabird
Bonjour,

J'utilise flexicontent 3.1.1
Je viens de remarquer quelque-chose d'étrange. J'ai eu dernièrement la création de pages dupliquées ( pages catégories) .
En regardant mes logs , j'ai vu des requêtes du type: http:// mondomaine/8d4c231336zerd8b15.php , http:// mondomaine/61fggfd4fssdfds5ezerze.php .....
En faisant quelques tests j'ai remarqué que pour la requête 8d4c231336zerd8b15.php , on était redirigé vers la catégorie de cid=8 , pour la requête 61fggfd4fssdfds5ezerze.php , on est redirigé vers la catégorie cid=61 et ainsi de suite ... Bizarre ....
A chaque fois que l'on commence par un nombre, on est redirigé vers la catégorie du nombre ???

J'ai donc du filtrer dans l'htaccess ce type de requête avec une condition RewriteCond %{REQUEST_URI} ^(\/[0-9]).* [NC,OR] ou bien RewriteCond %{REQUEST_URI} ^\/[0-9]+[a-zA-Z]*\.php$

J'ai testé sur un joomla sans flexicontent, on n'a pas ce phénomène

Vous avez déjà remarque ce souci ?


I use flexicontent 3.1.1
I just noticed something strange. I have recently created duplicate pages (category pages).
I Looking at my logs and I have seen requests of the type: http: // mondomaine/8d4c231336zerd8b15.php, http: // mondomaine/61fggfd4fssdfds5ezerze.php .....
I did some tests and I noticed something. For query 8d4c231336zerd8b15.php, we were redirected to cid = 8 , for query 61fggfd4fssdfds5ezerze.php, we were redirected to cid = 61 and so on ... Strange ....

Each time we start with a number, we are redirected to the category of the number ???

So I have to filter in the htaccess this type of request with a condition: RewriteCond %{REQUEST_URI} ^(\/[0-9]).* [NC,OR] or RewriteCond %{REQUEST_URI} ^\/[0-9]+[a-zA-Z]*\.php$

I tested on a joomla without flexicontent, we did not this problem.

Have you ever noticed this problem?

Merci,

Eric
Last edit: 6 years 9 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #68133 by ggppdk
Hello

it is intended behaviour

because we are using :
id-ALIAS

e.g.
8-somealias

e.g.
61-somealias

in your case you have
8d4c231336zerd8b15.php

so it is ID 8 and alias:
d4c231336zerd8b15.php

and in
61fggfd4fssdfds5ezerze.php

so it is ID 61 and alias:
fggfd4fssdfds5ezerze.php

similar is for joomla URLs, maybe they made some improvement
with detecting if there is a - OR a :

but take a joomla URL that contains an ID and alias
and change the alias (i do not NOT a MENU alias, i mean an article alias or a category alias)
you will notice that the alias part is ignored ...


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago - 6 years 9 months ago #68134 by ggppdk
Hello

e.g. you have a category 61 with alias:
"primary"

The category url can be (-IF-your home page is any FLEXIcontent menu itme):

http://mondomaine/61-primary

- Then if you change alias to :
primaries

then you will get a new URL of:
http://mondomaine/61-primaries

but any old bookmarked urls will continue to work
thus
http://mondomaine/61-primary

will continue to work,
it is possible
- to force the alias to be match also
- to check if id is followed by - or by :


About Joomla urls try this URL:
make sure that the article with id 1 exists !!

http:// somedomain /index.php?option=com_content&view=article&id=1:d4c231336zerd8b15.php


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 6 years 9 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #68135 by seabird
Hello,

Thanks ,
I did not know that.
But this functioning is a problem for me.
Regularly, people generate me hundreds of duplicated pages.
That's why for now, I blocked these url

Regards,

Eric

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.495 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline