PDA

View Full Version : .htaccess help



Archbob
March 21st, 2002, 18:13
I want one of my subdomains http://topsites.albinotreefrog.net to redirect to index.php instead of index.html . My host allows .htaccess. How do I do this?

Nick
March 21st, 2002, 18:31
DirectoryIndex index.php

Archbob
March 21st, 2002, 18:36
It didn't work right now in my .htaccess file I have:

DirectoryIndex index.php
ErrorDocument 500 http://www.albinotreefrog.net
ErrorDocument 404 http://www.albinotreefrog.net
ErrorDocument 401 http://www.albinotreefrog.net

When I type in http://topsites.albinotreefrog.net , it just goes to www.albinotreefrog.net

Archbob
March 21st, 2002, 18:38
Never mind. I had to use the abosulte URL. I works now.

Gayowulf
March 21st, 2002, 18:54
If you have root access just edit httpd.conf then it would be effective over the whole site.


but if not, .htaccess will do the trick.