SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: URL Changes

  1. #1
    SitePoint Evangelist
    Join Date
    Jan 2005
    Location
    ireland
    Posts
    482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    URL Changes

    Hello All,

    Can anyone help me with the following, all the articles in my website are stored in tables that are called out using PHP.

    What I want to do is convert the url's of these articles from PHP files that dont mean anything to an actual name that reflects the article.

    For example I would like to convert the url:
    http://www.askaboutvalidation.com/fe...ded.php?uid=50

    to something like

    http://www.askaboutvalidation.com/us...ification.html

    Is this possible without converting all the files back to a html format

  2. #2
    SitePoint Member
    Join Date
    Jun 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is possible.
    The first solution I am thinking on is one table more which works as "front end" and translates names.
    Non scholae sed vitae discimus.
    http://www.tsubame.de
    http://www.ruynk.de

  3. #3
    SitePoint Evangelist
    Join Date
    Jan 2005
    Location
    ireland
    Posts
    482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, have you got an example of how that might work?

    thank you

  4. #4
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,692
    Mentioned
    20 Post(s)
    Tagged
    3 Thread(s)
    gokeeffe,

    This is the basic purpose of Apache's mod_rewrite. Have a look at the tutorial article linked in my signature and, if you have questions, please post them in the Apache forum.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

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