apache - URL inside php get variable is not redirecting. It gives 404 error -


recently moved hosting godaddy hostgator.

i have download page in website (getintopc.com) called download_direct.php accepts url parameters e.g.

http://getintopc.com/download_direct.php?c=http://trial.autodesk.com/swdldnet3/2014/amech_pp/dlm/autocad_mechanical_2014_english_win_64bit_dlm.sfx.exe

so inside download_direct.php had simple code http meta redirect url in php variable "c"

but code not working on new hosting package. gives 404 error. page exists. can verified typing getintopc.com/download_direct.php

but seems argument passed in variable not being accepted per code logic. code not changed. working on godaddy.com

please me

i think need encode redirect url:

$c = urlencode("http://trial.autodesk.com/swdldnet3/2014/amech_pp/dlm/autocad_mechanical_2014_english_win_64bit_dlm.sfx.exe"); $url = "http://getintopc.com/download_direct.php?c={$c}"; 

if value of c not encoded, whole url becomes invalid. hope helps.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -