3 Replies Latest reply on Jul 24, 2013 9:07 PM by sudarshan.t

    website pages ending in .html

    peytonsgrammy

      I just created our new website in DW and all the pages end in .html  Unfortunately, this does not match the website pages I am replacing and students will receive an error message when they go to a bookmarked page, etc.  It will also cause problems with other websites that also have our site linked.  Is there a fix for this?

       

      New to DW

        • 1. Re: website pages ending in .html
          Jon Fritz II Adobe Community Professional & MVP

          For already created pages, from within the Files window, remove the "l" from the .html suffix of your pages.

           

          DW will ask you if it's OK to update your links, click "Update" or "Yes".

           

          For newly created pages in the future, before choosing File > New go to...

           

          Edit > Preferences > New Document

           

          ...and change the Default Extension to .htm

          1 person found this helpful
          • 2. Re: website pages ending in .html
            Nancy OShea Adobe Community Professional & MVP

            Which extension had you been using previously?

            It may be possible to do a permanent redirect on the server with .htaccess.

             

             

            Nancy O.

            1 person found this helpful
            • 3. Re: website pages ending in .html
              sudarshan.t Level 6

              If you currently have .htm extensions and your new files are .html, you can do a htaccess rewrite if you're hosting on an Apache (*Nix) server in your website root directory to redirect all .htm to .html (to match your new file extensions).

               

              RewriteEngine on
              RewriteBase /
              RewriteRule ^(.*)\.htm$ $1.html [R=permanent]

               

              This will rewrite all .htm files to .html with a permanent redirect - which is also search engine friendly.

              1 person found this helpful