Javascript Redirect to PHP page?

Alex

New member
I am using a javascript call to redirect the webpage to a php page. The problem is that it starts a download of the php file. What am I doing wrong? Here is the snippet of code:

window.location = "en/index.php";

Thank you in advance!
I copied and pasted that header into a php block on that page, but its still doing a download prompt. Any ideas?
Well I can view php files, but it just starts downloading them if I try to redirect to them. How would I configure it so it doesn't?
 
Back
Top