Another mod rewrite help thread

Discussion in 'PHP' started by red-sky, Dec 11, 2008.

  1. #1
    Im sure someone can help me with this problem, I am new to this and don't want to mess something up :rolleyes:

    Basically I know nothing of mod rewrite, though I know of some of its benefits, could someone suggest how to solve this problem:

    I have a PHP file that will generate a webpage based on a HMTL template, when I have generated this HTML file, I want to change the URL to a specific format i.e.

    From:

    http://mysite.com/generatepage.php

    To:

    http://mysite.com/variable1/variable2/variable3.html

    The variables will already be known and the directories will already be created, what im actually planning on doing is generating the html file, storing it onto my server using the 'file_put_contents' function at the specific location of my generated url i.e. http://mysite.com/variable1/variable2/variable3.html

    How would I be able to generate the html file, save it on the server and mod rewrite the current generated html to display the correct URL?

    Thanks in advance :D!
     
    red-sky, Dec 11, 2008 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    Please give us more info this is just not enough!

    What's your site about and why do you want to use /variable1/variable2/variable3.html? what does this stands for?

    /user/category/script.html?

    more details wanted!
     
    EricBruggema, Dec 17, 2008 IP
  3. herbacious

    herbacious Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    herbacious, Dec 19, 2008 IP