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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -