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.

Creating Static Pages - Mod Rewrite?

Discussion in 'PHP' started by freelancing, Jul 15, 2007.

  1. ecentricNick

    ecentricNick Peon

    Messages:
    351
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #21
    That's why earlier in the thread it says....

    And the guy replied saying that was the case.
     
    ecentricNick, Jul 18, 2007 IP
  2. ecentricNick

    ecentricNick Peon

    Messages:
    351
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #22
    Ok, think I get ya...

    If you want to redirect, you can do....

    redirect permanent ^site.com/prodddetail.php?prod=test(.*) site.com/test$1

    I think you'll need both the redirect and the rewrite if I understand you correctly, but the thread is getting a little complex now as people have posted other questions instead of starting new threads
     
    ecentricNick, Jul 18, 2007 IP
  3. Luke Jones

    Luke Jones Peon

    Messages:
    427
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #23
    Hello Nick,
    I can confirm that my rss code, including the use of $searchquery works perfectly. mysite/news.php?query=??? displays the rss feed perfectly.

    I did the tests you said. news.php?query=??? echos the query; news/???.shtml does not.

    Remember that news/query.shtml goes to the right page. So the rewrite is working, the rss is working, but the carrying through of the query is not (or maybe the getting of it).
     
    Luke Jones, Jul 18, 2007 IP
  4. Luke Jones

    Luke Jones Peon

    Messages:
    427
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #24
    Yes, adding &query=... on the end of news/query.shtml is now working. But, without it it will not pass the query.
    If I can't resolve it, I'll have to take the second best option, making semi-static urls like http://caboosh.org/news/football.shtml?query=football
    The part before the ? will be search engine friendly.
     
    Luke Jones, Jul 18, 2007 IP