Login
Register
Login
1 Hour
1 Day
1 Week
1 Month
Forever
Login
Register
Configuration
Boxed Container
Hide Carousel
Support-Forum
jDownloads for Joomla 3.x
jDownloads 3.9
(Moderator:
ColinM
)
Duplicate content issue Suggestion
« previous
next »
Print
Pages: [
1
]
Go Down
0 Members and 1 Guest are viewing this topic.
rikoooo
35
Duplicate content issue Suggestion
«
on:
23.09.2021 01:05:48 »
Hello friends,
I have a little issue about jdownloads 3.9 (and previous version) with SEF URLs.
I have configured Jdownloads to make URLs look like this :
https://www.exemple.com/downloads/viewdownload/51/981
where 51 is the category ID and 981 the download ID.
My issue is, if I remove the category (51) from the URL like this:
https://www.exemple.com/downloads/viewdownload/981
the URL will show the download page instead of redirecting to the normal URL:
https://www.exemple.com/downloads/viewdownload/51/981
which creates a duplicate content in Google Search.
Could you tell me which part of the PHP code I should edit to force a 301 redirect to the correct URL ?
Thanks in advance
Erik
«
Last Edit: 17.10.2021 14:16:52 by ColinM
»
Logged
ColinM
4.245
Re: Duplicate content issue
«
Reply #1 on:
23.09.2021 13:15:49 »
Erik,
What is the problem with including the reference to the category?
Also what did you set to make them
https://www.exemple.com/downloads/viewdownload/51/981
? The emphasis on usere friendly links is much much reduced these days.
There are multiple places where jD generates the links and it is not simple to describe. It also depends on the Front End Parameters etc etc. Sorry not the news you were looking for
. When I understand better from your response to above may be feasible to adviser.
Colin
Logged
Colin M
rikoooo
35
Re: Duplicate content issue
«
Reply #2 on:
23.09.2021 13:23:59 »
Hi Colin,
All I want is
https://www.exemple.com/downloads/viewdownload/ID
should redirect to
https://www.exemple.com/downloads/viewdownload/CATID/ID
, so no duplicate.
Thanks
«
Last Edit: 23.09.2021 13:25:00 by rikoooo
»
Logged
ColinM
4.245
Re: Duplicate content issue
«
Reply #3 on:
23.09.2021 14:07:39 »
Rikoooo, Forgot that this is not a jD thing!!You should be able to set a redirect in your .htaccess file -with a 301 redirect but I am no expert!!! Getting it yo be a variable is ......
Colin
Logged
Colin M
rikoooo
35
Re: Duplicate content issue
«
Reply #4 on:
23.09.2021 14:15:15 »
I think it's a JD thing,
How does an .htaccess file can guess the CATID ? It can't.
/downloads/viewdownload/ID to /downloads/viewdownload/CATID/ID must be done within JD.
I will find a way. Thanks
Logged
ColinM
4.245
Re: Duplicate content issue
«
Reply #5 on:
23.09.2021 15:07:12 »
Rikoooo
Whoops yes I had around the wrong way!!Colin
Logged
Colin M
Print
Pages: [
1
]
Go Up
« previous
next »
Legal Notice
Privacy Police
Contact