Solved

Pages without .htm or .html

Posted on 2004-03-23
4
161 Views
Last Modified: 2010-04-25
Hi all,
I use Dreamweaver MX 2004. On long links like www.abc.com/test/new/pages/first.htm if first.htm is removed  and link becomes www.abc.com/test/new/pages/ it hits my directory for 'pages'. Even on this site and on macromedia.com, generally most of the sites these days, if reverted back to www.abc.com/test/new/pages/ it shows pages/ as a page instead of accessing directory. How can I do that in Dreamweaver? Thanks in advance.
0
Comment
Question by:tahirr
4 Comments
 
LVL 4

Accepted Solution

by:
RedLava earned 250 total points
ID: 10663470
Hi tahirr,

'pages/' points to the root of the pages directory. This will look for various files to display (dafault.htm, default.html, index.htm, index.html etc.)

To use this in dreamweaver highlight the information you want to us as your link e.g. My 'link' text.
Then click on 'browse for file' in the same way as you would normally make a link to a page.
Once this window opens you are given directories and files. At the bottom there is a URL box. This contains the link you are going to give your text. If you move around your directories and files you will see this change. If you move to a directory but don't choose a file and hit ok it will store the directory as the link.
You will then need to make sure that directory has an index.htm or default.htm etc. that will launch when the directory is accessed.

I hope this helps.

RedLava
0
 
LVL 14

Expert Comment

by:Esopo
ID: 10664271
As RedLava explains, the "www.abc.com/test/new/pages/" link is pointing at the root of the "pages" folder. Depending on your server configuration, it will look for a "starting page" in that folder, it usually is a file called main.html - index.htm - default.asp - index.php or something like that (again, it depends of your server configuration, you can either play around with the config or try all the possible names ;) If your server can't find the "starter page" it will try to display that folder's content (given the configuration allows it) or simply display a "you don't have permission to view this folder" or a "wrong url" message.

You can also configure your own message/page to appear when someone reaches one of this error pages, in the case you haven't set up a "starter page" for each folder.

So basically what you need is to create a "starter page" (a simple page with the right name) for each folder.

Best regards,

Esopo.
0
 
LVL 23

Expert Comment

by:adilkhan
ID: 10664390
This has nothing to do with Dreamweaver.
What is the WebServer you using?

if IIS then make sure you have the option "Directory Browsing" uncheck.

And Also Place a Default Page in your pages Directory, this means if a Page is missing and only Directory name is specified then Web Server will Ooen/Load that default Document Automatically.
Refer to "Default Documents" to see what Pages are set as Default pages for your Server. You can always Add/Remove pages as well.
0
 

Author Comment

by:tahirr
ID: 10692913
Thanks RedLava, good job.
tahirr.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now