Entering non-extensioned URLs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • TheBulldog
    Sergeant

    • Nov 2006
    • 39

    Entering non-extensioned URLs

    How do you get your pages to be viewable if visitors simply type in your website and the page name without the extension (i.e. .html or .php) such as www.yourwebsite.com/pagename? WHen I try it with my site, I get my 404 error page. I'd like to be able to tell people to go to a particular page and have them be able to so without typing in the extension.

    I've been able to do it with other sites...just don't know what to do to get it to recognise the URL without the extension.

    Thanks,
    Scott
    www.helpingusellu.com
    Scott

    My Web Design Site
  • CarbonTerry
    Major General

    • Oct 2005
    • 2620

    #2
    Re: Entering non-extensioned URLs

    The "pagename" will be published to its own folder:
    public_html/foldername
    The page that goes into the folder has to be an "index" page.
    The real URL would be:
    yourwebsite.com/pagename/index.html (or php as needed)
    And of course when linking to an index page you do not need to add the "index.html"
    CarbonTerry
    Semper Fi
    Still green...still mean......just not as lean

    Red Hawk Archery
    Zone 5 Photo
    My USMC

    Comment

    • TheBulldog
      Sergeant

      • Nov 2006
      • 39

      #3
      Re: Entering non-extensioned URLs

      Hmmm. So every page that I want people to be able to go directly to by typing in the website URL followed by /pagename without the extension has to have its own separate folder under public_html?

      Let me see if I follow you. If I want to direct someone directly to a page to fill out an on-line application and that page name is "application" then I would go into my cpanel, open up the public_html folder, create a new folder inside it named application and then save that page as application to that folder? Or do I name it application/index to indicate it is an index page?

      Thank you CarbonTerry (and thank you for your service!)
      Scott

      My Web Design Site

      Comment

      • CarbonTerry
        Major General

        • Oct 2005
        • 2620

        #4
        Re: Entering non-extensioned URLs

        Yes on the individual folder.
        The page that has to go into each folder must be named " index " (no quotes)
        You will need individual folders in your BV files to keep from overwriting the index page.
        You're welcome.
        CarbonTerry
        Semper Fi
        Still green...still mean......just not as lean

        Red Hawk Archery
        Zone 5 Photo
        My USMC

        Comment

        • TheBulldog
          Sergeant

          • Nov 2006
          • 39

          #5
          Re: Entering non-extensioned URLs

          Dude! You rock! Sometimes the obvious is the most obscure. Works perfectly. Thanks again!!
          Scott

          My Web Design Site

          Comment

          Working...
          X