Page 1 of 1

where is php for creating download link

Posted: 11 Jan 2012, 11:21
by navibd
Hi
I have joomla 1.5.23 and Phocadownload 1.39
I want to assign phocadl folder to DL.mysite.com
I can do this but , I want to change file link creation from
www.mysite.com/phocadl/xxx/file.exe
to
DL.mysite.com/xxx/file.exe

Which file I have to modify in component? Is it in component folder of administrator section or in component folder in SITE?


urgent help!

actually I have files with 4 or 5 GB volume, so my webserver get 504 Gateway timeout error..
I have a dedicated Server with 16GB RAM and Xeon- quad core Cpu.....
I want to create speciall webserver only for download... that is my main problem...

Re: where is php for creating download link

Posted: 11 Jan 2012, 12:42
by SonRiab
You can modify the generated link in components/com_phoca.../views/category/tmpl/default_files.php and if you use the possibility to show details before download components/com_phoca.../views/file/tmpl/default.php but Joomla/PD would not find the right files if you click the link. The only way to achieve this is to add one rewrite rule to your webserver configuration (or maybe more) which rewrite internally dl.mysite.com/xxx/file.exe back to http://www.mysite.com/phocadl/xxx/file.exe.

[edit]
I am not sure if it works but you can give it a try: http://www.seblod.com/support/documenta ... sites.html .
[/edit]

Re: where is php for creating download link

Posted: 11 Jan 2012, 20:42
by navibd
which Line exactly?

Re: where is php for creating download link

Posted: 11 Jan 2012, 21:43
by SonRiab
25-38 in default_files.php ;)