|
-
Dec 26th, 2005, 05:43 PM
#1
Thread Starter
Fanatic Member
Folder on a website
i'm not familiar to creating folders in an existing website.
how can you create the folder "myFolder" on www.site.com so that it becomes www.site.com/myFolder
-
Dec 27th, 2005, 07:31 PM
#2
Lively Member
Re: Folder on a website
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateFolder(Server.MapPath ("\MyFolder"))
set f=nothing
set fs=nothing
%
*********** "why do things that are suspose to bad for us taste so good, whats ur addiction"
Kanye West **********
-
Dec 28th, 2005, 06:25 AM
#3
Fanatic Member
Re: Folder on a website
Hi John its not a folder hes referring to, its a virtual directory in IIS. the backslash give it away mate and no file name present... Good code though... worth a rep point!!! (given )
Right then. CAnt be done using code alone itll need to be odne in IIS, and if the site is externally hosted, tehyll probaby be cheeky BA*****S and charge you for this...
But if its not. here are teh concise instructions into doing this, and sip tips adn hints on this matter.
1. open IIS and enter the site your working on.
2. right click eithe the site name in the tree, or righ tclick anywhere in teh right space.
3. Select NEW/Virtual Directory
4. Name it (using no dots)
5. select the folder where teh files are stored.
6. Finish.
Right .. Youre nearly done. Jsut fine tuning now.
1. Right click on the Virtual Directory and select th eproperties
2. Go into documents
3. Clear the listed page names for the default hoem page, and insert yours in
4. Finish.
Youre done.
Now you acn simply type in www.mysite.com/myfolder and itlll auto open the default page selected.
Tips and Techniques, and Best practices for this.
[GUIDELINE]
NEVER use spaces or any sort of character iother than dashes, but not too many of those at all, as SE bots wil only check so far into them, adn youll lose the site body for Optimization adn indexing.
[GUIDELINE]
[BEST PRACTICE]
In IIS 5. The general practice is to use Virtual Dir's for files external to teh INETPUB, therefore teh practice is for the folder to be outside of this folder. HOWEVER. It is a great practice to ignore this and have ALL folders used by Virtual Dir's within the INETPUB dir. This makes for amore secure folder management system, faster response, and a tidier web directory for all in the longer term.
[/BEST PRACTICE]
[BEST PRACTICE]
Always specify 1 ADN only 1 default home page document. Makes for a faster reponse, better administration and easier page handling fr all WEBmasters, admins and sever authoroties.
[/BEST PRACTICE]
[BEST PRACTICE]
This is a well advanced technoque, but a well endorsed one indeed. normally, all DSN's (Data Service Names) are used exclusively for ODBC for internal services. BUT if youre designing an intranet. or a large scael site that utilises DSN's for its Database acess, change th default directory for the DSN files in the ODBC administration to a folder within the INETPUB dir. Youl lfidn that youll get better access adn more secure access using a DSN for your conn strings, from within IIS. After all. This is what it was built for. For sites, either practice is good, although stick to one for less complication..
[/BEST PRACTICE]
[GUIDELINE]
Always make your Virtual Dir's a distinct name diferent from the site name, and if possible, try and not to use the same wording in them over and over again. SE Bots adn matric algorithms are not this clever when looking at Virtuals, as they are in Actuals.
[GUIDELINE]
This should cover everything youll possibly need to know, any more q's post and i'll sort.
Hope this helps
Kai hirst
Last edited by kaihirst; Dec 28th, 2005 at 06:28 AM.
As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..
A few things that make a good Developer a Great One.
Methodical and a thorough approach to research and design inevitably leads to success.
Forward thinking is the key to Flow of control.
Never test in the design environment, always test in real time, you get the REAL results.
CBSE & OOSE are the same animal, they just require different techniques, and thinking.
SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
The key to good design is explicit attention to both detail and response.
Think Freely out of the "Box" you're in..... You will soar to better heights.
Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|