redirecting files using apache

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

redirecting files using apache

Post by pelegk2 »

first : i have .htaccess file with :
Redirect /test http://www.walla.co.il
when i access this folder it dosent redirect me - why is that?

second :
when i access a non existing page i recive the custom 404 error and not
my 404 error :
in the httpd.conf i did :
ErrorDocument 404 /error.htm
but it dosnet redirect to my error page!
why is that?
thnaks in advance
peleg
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Have you reset the server since you made the changes to the httpd.conf file? Are you allowed to write over the defualt settings by adding a .htaccess file?
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

Post by pelegk2 »

yes i did restart the apache (its on windows by the way)
and what do u mean by :"Are you allowed to write over the defualt settings by adding a .htaccess file?
"
Post Reply