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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Page Address Configuration

    Hello,


    I don't know if this is the right section, but I was wondering how I can make a page appear in the address bar without the *.php at the end.


    For example, instead of

    "http://www.example.com/content/"
    which would usually appear if you have a folder called "content".

    However, I need it to be like this:

    "http://www.example.com/content"

    WITHOUT the bracket at the end, or the *.php... how can I make this possible? Because in my site, I want people to be able to easily navigate for example:


    www.example.com/content1
    www.example.com/content2


    etc, etc.


    Also, I am planning to use ONE page, which will get different content from a database. For example, I want to have one "index" page, but when I do for example


    www.example.com/content1

    then it will get different content from a database than if I were, for example, were to have


    www.example.com/content2


    but still loads the same index.php page.. but different content, and in the address bar I'd like shown as I described.


    How would I be able to make this possible?


    Thanks!

    -Captainel

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    You can do what you want using mod_rewrite. Take a look at that.
    OracleGuy


  •  

    Posting Permissions

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