Mod Rewrite for Classified Ads Site

Discussion in 'Apache' started by Henny, Feb 28, 2006.

  1. #1
    OK, here is where I am at...

    My URLS currently look like this: http://www.rvclicks.com/index.php?a=2&b=183

    So I wrote the following htaccess

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule index/(.*)/(.*)/(.*)/(.*)/$ /index.php?$1=$2&$3=$4

    Problem is this has zero effect...

    Any clues?
     
    Henny, Feb 28, 2006 IP
  2. Henny

    Henny Peon

    Messages:
    2,118
    Likes Received:
    241
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This has zero effect also:

    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^index/([^.]+)/([^.]+).html$ index.php?a=$1&b=$2 [L]

    I am on ASO server so rewrite should be no problem.
     
    Henny, Feb 28, 2006 IP
  3. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #3
    Nintendo, Feb 28, 2006 IP
  4. Henny

    Henny Peon

    Messages:
    2,118
    Likes Received:
    241
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I do not see what you mean. I must be a dullard, whenever I click on anything i get the php crap in my title bar...
     
    Henny, Feb 28, 2006 IP
  5. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #5
    Nintendo, Feb 28, 2006 IP
  6. Henny

    Henny Peon

    Messages:
    2,118
    Likes Received:
    241
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Right, if I click on YOUR links they work, if I just go to the home page, and navigate around, the urls are php
     
    Henny, Feb 28, 2006 IP
  7. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #7
    mod_rewrite doesn't change the script URLs. You have to edit the script to change the links. mod_rewrite only makes the fake URLs work.
     
    Nintendo, Feb 28, 2006 IP
    Crazy_Zap likes this.
  8. Henny

    Henny Peon

    Messages:
    2,118
    Likes Received:
    241
    Best Answers:
    0
    Trophy Points:
    0
    #8
    ahh, you see? I am a dullard! Well, off to break the script, chow!
     
    Henny, Feb 28, 2006 IP