Help - Search - Members - Calendar
Full Version: Arcane Pathing Question
Movable Type Community Forum > Additional Resources > Tips and Tricks
medic119
I am wanting to move my site from the root directory to a subdirectory underneath the root for security and organizational purposes, and redirect the domain to point to that subdir.

I know it can be dne with .htaccess, but I don't have that level of capability with my host (their interface allows for protecting only).

My question is this:

If in my blog config I change local site path to the new subdir, but leave Site URL to be www.seadoc.net, will that handle what I want to do, or is that a DNS hosting function?


I know how to rebuild and change the config to move my pages there, just unsure how to re-direct the URL to the new Subdir.
jystewart
For documents to be web-accessible while below your web-accessible root folder, you'll either need to write a script to access them or to change your server configuration (through httpd.conf or .htaccess).

James.
bmk
QUOTE
If in my blog config I change local site path to the new subdir, but leave Site URL to be www.seadoc.net, will that handle what I want to do, or is that a DNS hosting function?


Yes, you can do this.  The Site URL is used for your address when you ping weblogs, mt.org, etc.  And it is also what is filled in when $MTBlogURL$ is used in the templates.  So you will want to go through the templates and replace MTBlogURL with your real subdirectory URL (http://www.you.com/blog/).  There's only a few of them, like in the stylesheet links and stuff.  I did this for a long time when I wanted my ping URL to be www.me.com instead of www.me.com/blog/.  Hope this helps.
girlie
What am I missing?

How will that get his blog index page to appear at www.seadoc.net??
bmk
It won't heh.  I was answering some other question I guess now that I read it again.  :p   I just woke up when I wrote that, sorry.
girlie
Whew! I thought I was missing something really obvious!!

smile.gif
medic119
Ha, LOL.  I didn't think it would work that way, but hey It was worth asking.

.htaccess is the best way to accomplish this.  

I played around for a while with it yesterday.
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.