Results 1 to 5 of 5

Thread: Entering non-extensioned URLs
      
   

  1. #1
    TheBulldog is offline Sergeant
    Join Date
    Nov 2006
    Posts
    32

    Default 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

  2. #2
    CarbonTerry's Avatar
    CarbonTerry is online now Major General
    Join Date
    Oct 2005
    Location
    St L MO
    Posts
    2,590

    Default 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

  3. #3
    TheBulldog is offline Sergeant
    Join Date
    Nov 2006
    Posts
    32

    Default 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!)

  4. #4
    CarbonTerry's Avatar
    CarbonTerry is online now Major General
    Join Date
    Oct 2005
    Location
    St L MO
    Posts
    2,590

    Default 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

  5. #5
    TheBulldog is offline Sergeant
    Join Date
    Nov 2006
    Posts
    32

    Default Re: Entering non-extensioned URLs

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49