.htaccess redirect problem


Okay, I’ve searched the forums and wiki and Google and can’t find out why this isn’t working. I’ve uploaded a .htaccess redirect file to my root and it is not working as far as I can tell. I’ve uploaded it using AceFTP, in ASCII mode, created in notepad without text wrap enabled. I’ve tried both a 301 version (preferred) and the standard. This is with a shell enabled user account. The exact text is as follows:

redirect /merchtable.com/htaccess/index.html http://www.bluecollardistro.com/index.htm

301 version:
redirect 301 /merchtable.com/htaccess/index.html http://www.bluecollardistro.com/index.htm

Any idea why this isn’t working? This is just a test, so I created a folder called htaccess to keep it clear for myself. The offending page: http://www.merchtable.com/htaccess/index.html

Thanks in advance!


Tried using ‘Redirect’ vs ‘redirect’?

my root

Make sure it’s your DocumentRoot. Ie: within your domain directory: /home/username/domain.com/.htaccess


Hooray! Thanks, the domain directory part made it work.

Just for reference, for anyone else reading this in the future, the final working result is as follows:

Redirect /htaccess/index.html http://www.bluecollardistro.com/index.htm

Placed in the domain root folder ‘merchtable.com’.

Thank you again.