Hi all!!
I am using Phoca Download 1.3.9 in a Joomla! 1.5 installation with sh404SEF for creating friendly URLs
I had a file on my site available for public download, but as we have changed the content of the file and have created an area for that content, we are not providing the file anymore, and now we would like to change the file download with a redirect to the new area of the site.
So in short, we want that the link:
DOMAIN/category/4-category-name.html?download=64
instead of providing the download of the file, redirects the user to:
DOMAIN/Category/NewArea.html
I have tired setting a custom redirect with sh404SEF but it's not working and setting up a new rule manually in .htaccess is not working either.
Is there a way to accomplish this redirection using Phoca Downloads (maybe with some overrides or adding some code to the database)?
Thank you a lot for this great component.
Change downloaded file with custom redirect
-
- Phoca Newbie
- Posts: 7
- Joined: 27 Oct 2011, 11:25
- Jan
- Phoca Hero
- Posts: 48610
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Change downloaded file with custom redirect
Hi, in Phoca Download there is no such option, I think this needs to be customized where URLs are managed (in Joomla! router methods, etc.) I have no experiences with sh404SEF so not sure how the redirect does work there? 
Jan

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 7
- Joined: 27 Oct 2011, 11:25
Re: Change downloaded file with custom redirect
Thank you for your answer Jan!!
I think that the problem is that the current URL is already translated by sh404SEF, so the component is not taking the parameters (?download=64). I'm going to try to add some custom code to the controller of phoca to detect the conflictive ids and redirect them. Not very clean, but it should do right now.
I am not event sure that this has sense!! xD xD
Thank you a lot for your support and contribution.
PS: BTW, I think the redirection could be a nice feature for future Phoca versions (obviously J1.7 branch
).
I think that the problem is that the current URL is already translated by sh404SEF, so the component is not taking the parameters (?download=64). I'm going to try to add some custom code to the controller of phoca to detect the conflictive ids and redirect them. Not very clean, but it should do right now.
I am not event sure that this has sense!! xD xD
Thank you a lot for your support and contribution.
PS: BTW, I think the redirection could be a nice feature for future Phoca versions (obviously J1.7 branch
