FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Virtual directories? I have a need

 


IceCreamTruck
OK, I've rolled a couple versions of my site out, and with the new header/footer changes I'm seeing a need for a couple virtual directories for my site. I will explain.

All my files are in /public_html/
My header and footer files are in /public_html/templates/

My domain is space.frih.net
I've created web.space.frih.net - subdomain
and outer.space.frih.net - subdomain
they are located in the following directories and the header and footer files must be in a templates directory just below them
/public_html/web/
/public_html/outer/
for example...
/public_html/web/templates/ - directory structure without virtual dir
/public_html/outer/templates/ - directory stucture without virtual dir

I really want to be able to set the following directories as virtual directories pointing at the /public_html/templates/ directory so I don't have to copy header/footer files over and over for every subdomain that I add.
/public_html/web/templates/ - points to /public_html/templates/
/public_html/outer/templates/ - points to /public_html/templates/

How do I do this? I've looked all over my direct admin console, and in my ftp program to see if it allowed me to add virtual directories, but I can't find this anywhere.

Can someone help me save time and site bugs by telling me how this can be done? Please contact me back and help me work this out because it's getting to the point of saving me a lot of time, headaches, and webspace for every time I would otherwise have to duplicate these files for each sub domain in opporation on my site.

Thanks
Bondings
I rather think that you are trying to make it much more complicated than it should be.

What I think you want to do is include a footer and a header with SSI to every page.

Take this code in one of your subdomains:
Quote:
<!--#Include Virtual="/templates/header_a.ssi"-->

And now instead of going up one directory to /public_html/subdomain/templates/, you change it to go down one directory, to public_html/templates/ .
Quote:
<!--#Include Virtual="../templates/header_a.ssi"-->

With "../" you go up in the directory structure with one level, "../../" would mean 2 directories up.

I hope this helps.
IceCreamTruck
You know, I tried that, but I made a mistake in thinking just "/" would start at the root directory. I didn't include the ".." so now I will. HAHA

Thanks bondings, you rule!

(Super Bondings to the resque! Gogo Gadget... Keyboard! lol)
Related topics

PHP paths and IIS virtual directories
Best Freeware
Help needed using Linux
Ally from France
Virtual Host in Apache

Fix for deleting files/directories owned by apache
I Need distributed Operating System
Immersive Virtual Reality
Aapache Virtual host
I need a VERY simple php script

Can I copy/upload entire directories in a frihost account
upload folder permissions
Need help with subdomains of my hosting account!
Virtual CREDIT CARD For Net?
Making new virtual sim game. Nee'ds load's of things-Inside
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.