Help with Redirection using Header Error

I was running a php application written in php 4 on an Apache server running php 5. After filling an employee form and

clicking submit button, it actually saved the data to the MySQL database but gave this error:


Forbidden

You don’t have permission to access /admin/teacher/teacheraddsuccess.php on

this server.

Additionally, a 404 Not Found error was encountered while trying to use an

ErrorDocument to handle the request.
Apache Server at www.mywebsite.com Port 80

The offending script is:

Header(“Location:teacheraddsuccess.php?pg_src=$pg_src&appno=$appno&successful=”.urlencode($successful)."&empid=".$empid);

Please help.

Joel

check the permissions of the script might need to be changed to work properly
/admin/teacher/teacheraddsuccess.php

I have done so. I even changed it to 755 but it didnt work.

do you have a .htaccess file ?maybe this is the problem.

Problem Solved.

The error was in fact a modsec rule error, which has been sorted out by my hosting company.

Thanks everyone.

Joel

Sponsor our Newsletter | Privacy Policy | Terms of Service