Dominical1 / stikked

Some code that I love from Ben McRedmond
GNU General Public License v3.0
0 stars 0 forks source link

download paste is giving me 404 error code #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. clicking on download paste link

What is the expected output? What do you see instead?
should be able to download paste instead it's giving me "The page you 
requested was not found."

What version of the product are you using? On what operating system?
stikked 0.5.3

Please provide any additional information below.
when i click on download paste i get this link 
http://url/index.php/view/download/PID

Original issue reported on code.google.com by the.vbm on 2 Oct 2008 at 6:30

GoogleCodeExporter commented 9 years ago

Original comment by ben%benm...@gtempaccount.com on 2 Oct 2008 at 6:51

GoogleCodeExporter commented 9 years ago
Download issue can be rectified by adding "$route['view/download/:any'] =
'main/download/';" to the routes.php.

Hope this helps. - Placidus

Original comment by placi...@sltnet.lk on 18 Oct 2008 at 3:27

GoogleCodeExporter commented 9 years ago
Yes, in 
system/application/config/routes.php
just append:
$route['view/download/:any'] = 'main/download/';

Can be closed.

Original comment by cool2sv@gmail.com on 11 Feb 2009 at 9:43

GoogleCodeExporter commented 9 years ago
that route already exist for me ... yet problem still is persistent even on 
fresh
install.

Original comment by the.vbm on 11 Feb 2009 at 10:19

GoogleCodeExporter commented 9 years ago
This is weird. I thought I fixed it ;-). Big update coming soon with a lot of 
behind the scenes stuff changed, 
hopefully it should be fixed. Working on my dev machine.

Original comment by ben%benm...@gtempaccount.com on 11 Feb 2009 at 11:54

GoogleCodeExporter commented 9 years ago
I know this is old but for anyone still seeking a fix, its all dependent on the 
order
of the routes. This works for me...

$route['default_controller'] = "main";
$route['scaffolding_trigger'] = "";

$route['cron/:any'] = "main/cron";

$route['view/raw/:any'] = 'main/raw/';
$route['view/options'] = 'main/view_options';
$route['view/download/:any'] = 'main/download/';
$route['view/:any'] = 'main/view';
$route['lists'] = 'main/lists';
$route['lists/:num'] = 'main/lists/$1';
$route['about'] = 'main/about';

Original comment by scn...@gmx.com on 25 Jan 2010 at 11:25

GoogleCodeExporter commented 9 years ago
on stikked.com it still doesn't work.
it's because a bad link: http://stikked.com/view/download/39561362.php instead 
of http://stikked.com/view/download/39561362 (without .php)

Original comment by tac...@gmail.com on 17 Aug 2010 at 1:10