.htaccess tutorial

htaccess Elite


301/401/501 error redirection

Using PHP in and with htaccess

301/401/501 error redirection

New postby srivalli » 04 Sep 2008 10:39

hi
I want some information regarding 301 status. I written in htacces file as
ErrorDocument 301 /projectname/folder1/folder2/301.php

How i can test 301 error status in my localhost. How to reproduce that error status.
Actually i have to display some static page when i am getting error codes like 301/401/501...

Whether that static page should be in project folder or out of that folder?
when i am trying to authenticate, then that page is in project folder. its not accessing that page when i am getting 401 error.
Is it access when 301 error also will come? 301 is a moved permanently status code, so where i have to place it in our project, similarly 501 error .........

Some one guide me regarding this...........

Thanks,
Srivalli Ch.
srivalli
 
Posts: 2
Joined: 04 Sep 2008 05:24

Return to PHP and htaccess



cron