Help - Search - Members - Calendar
Full Version: Pulling file from another directory
Movable Type Community Forum > Additional Resources > Tips and Tricks
twos
In blog config, I have the local site path set for /blog/. So it writes to the file /blog/index.html. But somehow, the main directory also picks it up. This is good, because it's what I want, but I'm not sure how it's done. Also, the main directory picks it up, but index.html doesn't. So I see it at / but not /index.html. I did try making a htaccess file with
QUOTE
DirectoryIndex ./blog/index.html

but it didn't show up when I uploaded it (WS_FTP) to the main directory. Does anyone know how this is happening? Is the htaccess file existing but not visible, and how can I make it work for index.html as well?

Thanks!
bmk
If I follow what you're saying...

You're have your index at
http://www.you.com/blog/index.html

And you're using htaccess to make it show at
http://www.you.com/


But you're also looking for it at http://www.you.com/index.html

huh.gif


I don't think it's meant to work that way.  Not saying it's impossible, I don't know offhand how you'd do that.  Showing it at http://www.you.com/ would be all you need, yes?

Yeah, your htaccess probably invisible when you look via ftp, it's a system file and doesn't show.  You might be able to force your ftp program to show hidden files.  I just usually write over the old one (when I know what's in the old one)

The index.html file isn't actually moving, you're just telling the server with htaccess to make it LOOK like the index file is up a level from where it really sits.

Hope this helps, please post back with questions.
Brenna
twos
Yah, so it is the htaccess file that's getting it? I was just wondering if there was an easy way to let the index.html file look at it to, but it's not really necessary. Is there any way to be able to see the htaccess file with ftp?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.