How is mod rewrite meant to work?

Discussion in 'Apache' started by dcristo, May 7, 2006.

  1. #1
    I have this in my .htaccess:

    
    Options +FollowSymLinks 
    RewriteEngine on 
    RewriteRule ^articles/(.*).html$ index.php?page=$1 [NC]
    
    Code (markup):
    When I goto access the rewritten cleaner URLs (eg. http://www.domain.com/articles/page.html) it works fine, however all the links which I have rewritten on the page are still dynamic links.

    Is this how its meant to work when configured properly? Are you supposed to edit the actual dynamic links on the pages aswell?
     
    dcristo, May 7, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Only way to change the links is edit the script. All mod_rewrite does is makes the fake URLs work.
     
    Nintendo, May 8, 2006 IP
  3. theblight

    theblight Peon

    Messages:
    246
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I agree...you will change a lot in your programming to put out those fake URLS...a code_rewrite..is the best :D

    :eek: code_rewrite does not exist...am joking...:D
     
    theblight, May 8, 2006 IP