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.

Free PHP ODP Script - htaccess help

Discussion in 'Apache' started by wolfie, Aug 3, 2005.

  1. #1
    Ok, I'm code-retard so I'll ask from you gurus. :)

    I use this nice Free PHP ODP Script in my directory and would like to get dynamic URLs to static. Like it's running here: http://www.site-directory.org/

    Currently it goes like this:
    http://www.domain.com/index.php?c=/News/
    ..and should be like these guys have:
    http://www.site-directory.org/Top/News/

    I tried to read mod_rewrite guide, but got only headache. How this can be done via htaccess?

    I really appreciate!
     
    wolfie, Aug 3, 2005 IP
  2. Ned

    Ned Active Member

    Messages:
    402
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    78
    #2
    You still need to use mod_rewrite, when people refer to the .htaccess you are simply putting the mod_rewrite directives in that file instead of in your httpd.conf file.

    I am unfortunatly a complete idiot when it comes to mod_rewrite so can't help with the directives but there are plenty of people here who are very good on it indeed. Hopefully they'll help out.
     
    Ned, Aug 3, 2005 IP
  3. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yfs1, Aug 3, 2005 IP
  4. wolfie

    wolfie Member

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    Yeah, that's the guide I was talking about. I readed it couple times but still have no clue how to do this.

    Making .htaccess is simple though, but writing correct re-write rule is just going far over my head. :confused:
     
    wolfie, Aug 3, 2005 IP
  5. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #5
    My tip would be:

    Create a new thread in the Apache section of the forum and make the title:
    Rewrite rule needed for ODP Script

    In the post list the url's you want to change and what you want to change them to.

    I'm sure Nintendo will give you a hand (or anyone else)....He may not see this post here
     
    yfs1, Aug 3, 2005 IP
  6. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #6
    Yep, I saw this. I use the new posts search at the top a lot, so I see everything.

    I posted a code on the other thread, for if you get dead-links on the sub-sub-sub directories.
     
    Nintendo, Aug 3, 2005 IP