Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sub pages without extensions as in www.main.com/sub

Status
Not open for further replies.
The page being called when referencing just a folder is index.htm, index.html, index.cfm, index.asp, etc. You can easily accomplish this by each page being contained in it's own folder and referencing just the folder in links.

<a href=&quot;folder/&quot;>Link</a> rather than <a href=&quot;folder/index.cfm&quot;>Link</a>

DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
There are also web applications... Content Management Systems for example... that use executables/files without file extensions.

You can do this yourself, if you happen to have a /cgi-bin directory and your web server is set up correctly. The /cgi-bin directory is generally set up to allow a web server to execute the scripts within. So if you produce a CGI or PERL script and don't name it with a file extension... for example &quot;showmessage&quot; rather than &quot;showmessage.cgi&quot; or &quot;showmessage.pl&quot;... then you can get the script to run by simply browsing to
Now suppose that a directory other than cgi-bin was set up the same way. As I said, this is a common way to develop a content management system. Say it sits under a directory off of webroot called &quot;content&quot;, and simply contains a C++ app named &quot;page&quot;.

You'd be able to use URLs such as:



-Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top