tips and tricks for movable type
making blog/index.html your main site page
August 08, 2002
Your blog is located at http://www.mydomain.com/blog/index.html, and you want it to appear at http://www.mydomain.com/index.html - but you don't want to set the permissions on your main site directory to 777.
Use the .htaccess method, as suggested by Brenna in this MT support forum thread.
Add this line to the .htaccess file in your main site directory:
DirectoryIndex ./blog/index.html
Comments
thanks for the great tip! your website's cool.
I feel like such an idiot. I can't find the htaccess file anywhere. Can someone point me roughly in the right direction?
You may not have one already on your server. Just create the file in a text editor, save it as .htaccess, and upload in ASCII mode to your server.
(Make sure your text editor doesn't add a .txt extension to the end of the filename. And you might want to confirm with your host that there isn't a hidden .htaccess file on the server, as you might not want to overwrite it.)
I apologize for the newbieness of this question, but how do I make the main index page of my site "index.php" and not "index.html"?
By the way - many, many thanks for your tips on installing Movable Type on a Windows PC! I would've surely had a meltdown without them. ;-)
Oops! Nevermind! I figured it out.
Thanks anyway :-)
Okay, so when I do this neat trick and folks actually try to go to the old location (http://www.esselle.org/weblog/) the index file in there doesn't work? Can I make it so that either place they go to will give them the same result?
Weird. Nevermind for me too. For some reason removing that "." from the front of the path worked for my problem. Cool deal.
Is it possipbe to do this with blog/index.php as well?
I have .htaccess for the 404 error page. When i insert DirectoryIndex ./blog/index.html
i receive internal server error 500. WHY????
I can't find a good .htaccess to .htpasswd tutorial for the easily frustrated--like myself. :D What I've read so far makes little sense. Any suggestions?
This trick works...
I can now go to http://www.name_of_my_site.com/blog by simply going to http://www.name_of_my_site.com
The problem though is that after doing this .htaccess method, people can see what's inside /blog if they happen to type http://www.name_of_my_site.com/blog
What should I do to prevent them from seeing the files? Thanks.