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.

mod_rewrite help

Discussion in 'Programming' started by daboss, Nov 20, 2006.

  1. SEMrush
  2. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Something like this may work, not exactly sure, although I do know the first rule will work.

    http://www.doriat.com/ has alot of information on this, and help with it.

    
    Options +FollowSymLinks
    
    RewriteEngine On
    
    RewriteCond %{SCRIPT_FILENAME} -f [OR]
    RewriteCond %{SCRIPT_FILENAME} -d
    RewriteRule .* - [L]
    
    RewriteRule ^([^/]+)/?$          		/index.php?x=$1  [QSA,L]
    RewriteRule ^([^/]+)/([0-9]+)/([0-9]+)/?$ 	/$1/$2/index.php?x=$3 [QSA,L]
    Code (markup):
     
    chopsticks, Nov 20, 2006 IP
    daboss likes this.
  3. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks man - some green on the way!
     
    daboss, Nov 20, 2006 IP