Ok I'm going crazy I am trying to do what I keep reading everywhere is a simple procedure.
I want to redirect domain.co.uk/test.html to [otherdomain.com...] I'm running Apache/2.0.52 (CentOS) I host 20+ domains on my server so I use virtual hosts configured like so.
<VirtualHost www.domain.co.uk>
DocumentRoot /home/domains/domain_co_uk
ServerName www.domain.co.uk
<Directory "/home/domains/domain_co_uk">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
The first thing I tried was .htaccess like so
Redirect 301 /test.html [domain.com...]
and put in the domains root directory /home/domains/domain_co_uk
I even tried to redirect the entire domain using mod_rewrite but it seems the .htaccess file is totally ignored.
Next I tried
Redirect permanent /home/domains/domain_co_uk/test.html [domain.com...]
in the httpd.conf and restarted apache as instructed.
AGAIN nothing happened.
Is my server broke or what? I hope someone reads this and can tell me what I could possibly do to solve this I have googled this problem to death and can't find anything.