Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    afe
    afe is offline
    Banned
    Join Date
    Sep 2007
    Posts
    146
    Thanks
    43
    Thanked 0 Times in 0 Posts

    having pages as /

    hey, does anyone know how to have pages of .php just in page/
    so an example would be.
    www.website.com/testingpage/
    instead of having www.website.com/testingpage.php?

    What kind of pages are the ones just with a /?
    thanks.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    That is just a directory with an index.php file in them. Pointing your site to http://www.website.com/testingpage/index.php should get you to the same place. Most of the time index.php or index.html is the default page though this may vary with your host.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    in your .htaccess file(if your using apache) add this line:
    Code:
    DirectoryIndex pagename.php
    where pagename.php is whatever you want.

    NOTE: this will carry over to subdirectories unless you set it in each directory or make a list like this:
    Code:
    DirectoryIndex pagename.php page2.php page3.php
    so if pagename.php doesnt exist, it will move on to page2.php then page3.php


    -Adam
    Why not thank me?

    http://adamsworld.name

  • #4
    New Coder
    Join Date
    Oct 2007
    Posts
    22
    Thanks
    0
    Thanked 4 Times in 4 Posts
    are you talking about rewriting urls ?

  • #5
    afe
    afe is offline
    Banned
    Join Date
    Sep 2007
    Posts
    146
    Thanks
    43
    Thanked 0 Times in 0 Posts
    I just made a page under a directory and I labelled it. index.aspx and didn't work, then I tried Default.aspx. and none of the times doing directory/ got me to that place. Do I empty the directory and only have that page?

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Quote Originally Posted by afe View Post
    I just made a page under a directory and I labelled it. index.aspx and didn't work, then I tried Default.aspx. and none of the times doing directory/ got me to that place. Do I empty the directory and only have that page?
    Does you host support asp pages? You may want to check with your host to see what the default pages are.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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