Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

dropping the suffix

New Here ,
Jun 24, 2007 Jun 24, 2007
Hi:

Can someone tell me how I can get my website to assume a .html suffix so that browsers don't have to add the suffix all the time? ie: instead of typing www.predictum.com/dynamic.html - I'd like the user to just have to ype www.predictum.com/dynamic - and have it automatically go to dynamic/html.

Is there an easy way to handle this in Dreamweaver CS3???

Many thanks in advance!!!

Wayne
TOPICS
Extensions
350
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jun 26, 2007 Jun 26, 2007
LATEST
Dreamweaver can´t do this, as it works with real files and not "alias" -- something like this needs to be done by the server, e.g. your local and remote Apache server may (or may not, depends on the configuration provided by the server admin) have a "rewrite engine" module ( mod rewrite) installed, which could be configured to do what you want.

It´s a tricky thing though, and an easier option were to place your e.g. current "dynamic.html" in a subdirectory named "dynamic" and rename the file to "index.html" -- the reason behind this approach is: servers are usually configured to automatically load an existing "index.htm(l)" file from whatever directory in case no file name has been supplied, means linking to "www.predictum.com/dynamic" would load this file.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines