1 Reply Latest reply: Aug 14, 2014 8:38 AM by snapple82 RSS

    Forwarding my .com/xyz.html to just .com/xyz (delete the .html extension)

    snapple82 Community Member

      Hi! How do I direct:

       

      http...url.../party

       

      to go to

       

      http...url.../party.html

       

      I host with register.com. TYIA!

      [links modified by moderator]

        • 1. Re: Forwarding my .com/xyz.html to just .com/xyz (delete the .html extension)
          snapple82 Community Member

          I found the answer, and here's a quick type up for the next person who needs this answer.

           

          1. Open Notepad.

          2. Enter this code (you don't need to replace any of the text in this code with your own page names or anything; just copy/paste):

           

          RewriteEngine On

          RewriteCond %{REQUEST_FILENAME} !-f

          RewriteRule ^([^\.]+)$ $1.html [NC,L]

           

          3. Click save as.

          4. Enter (with the quotes!!!) this as the filename:  ".htaccess" (select Encoding: ANSI if it doesn't default to it; it's right next to the save button)

          5. Open your FTP program (I used dreamweaver).

          6. Upload this file to your website. As far as location, I understand that anywhere it is in the heirarchy of files, it will affect not only the folder it is placed in, but also any additional files within that tree.

          7. Publish!

           

          Hope that helps.