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.

That Mod_rewrite thing

Discussion in 'Apache' started by Trance-formation, Sep 5, 2004.

  1. #1
    I've been trying to mod-rewrite my dynamic urls for my directory at www.deep-mind.com/directory/index.php
    SEMrush
    I've tried all sorts and currently have the following in a .htaccess file in the directory folder


        RewriteEngine On
        RewriteBase /
        RewriteRule ^([0-9]+)\.html$  index.php?ax=list&cat_id=$1 [L]
    Code (markup):
    Nothings working and the whole mod_rewrite thing seems tortuous :eek: What am I missing (I know the mod_rewrite setup works because I have a working version of Owlcrofts freebie tool that relies on it)
     
    Trance-formation, Sep 5, 2004 IP
    SEMrush
  2. l0cke

    l0cke Active Member

    Messages:
    178
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    73
    #2
    I'm no mod_rewrite expert but I think that sytanx is invalid. Try this:

    RewriteRule ^([0-9]+)\.html$  [B]/[/B]index.php?ax=list&cat_id=$1 [L]
    Code (markup):
     
    l0cke, Sep 5, 2004 IP
    Trance-formation likes this.
  3. Trance-formation

    Trance-formation Peon

    Messages:
    598
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No joy :(

    I've reached the point of trying variations at chance... I dreamed mod-rewrite last night and should be asleep right now!! :D
     
    Trance-formation, Sep 5, 2004 IP
  4. bobafind

    bobafind Peon

    Messages:
    128
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try this:
    RewriteRule ^directory/([0-9]+)\.html$  http://www.deep-mind.com/directory/index.php?ax=list&cat_id=$1 [L]
    Code (markup):
     
    bobafind, Sep 5, 2004 IP
    Trance-formation likes this.