1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Dynamic to static

Discussion in 'Programming' started by deebo, Dec 18, 2004.

  1. #1
    I hope u guys can help me out.
    I'm looking for how the code for mod_rewrite can look for the following.

    I would like to make my dynamic links to static. The hosting company I'm using does not support mod_rewrite but by next week, I will move to a new hosting company that does support mod rewrite.

    I would like the links to be written from for instance http://www.marketuganda.com/menues.php?head=1 to http://www.marketuganda.com/accomodation.html and so on. I can also consider http://www.marketuganda.com/uganda_accomodation.html

    SInce I use an admin for adding on categories and sub categories, the solution should enable automatic conversion of those links to stati. Morever, the visitors should se the static names instead of the php.
     
    deebo, Dec 18, 2004 IP
  2. goldensea80

    goldensea80 Well-Known Member

    Messages:
    422
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    128
    #2
    If you are an expert at PHP, you can write some program that read from your database and write in to HTML form. But the, it wouldn't be dynamic any more.
    By far I don't know any software like that,
     
    goldensea80, Jan 7, 2005 IP
  3. pwaring

    pwaring Well-Known Member

    Messages:
    846
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    135
    #3
    What do you mean by changing your links from dynamic to static? Do you want your pages to be statically generated instead of dynamically (e.g. have PHP scripts produce HTML pages) or have your links look like static pages that actually point to PHP scripts that generate output on-the-fly?

    I can help you change your links to that /accomodation.html points to /phpscript.php?section=accomodation or whatever if that's what you want.
     
    pwaring, Jan 14, 2005 IP