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 rewite. working well but with error 404 on post.html

Discussion in 'Forum Management' started by webdesignlab, Nov 22, 2005.

  1. #1
    Hi people,

    I have mod rewrite running, but have a problem with one of the pages.

    Here is my .htaccess which is in root folder

    
    
    RewriteEngine on
    RewriteBase /huatulco/
    RewriteRule /post\-([^.]+)\.html&highlight=([^.]+)$ viewtopic.php?p=$1&highlight=$2 [L,NC]
    RewriteRule /post\-([^.]+)$ viewtopic.php?p=$1 [L,NC]
    RewriteRule /view\-poll([^.]+)\-([^.]+)$ viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
    RewriteRule /about([^.]+).html&highlight=([^.]+)$ viewtopic.php?t=$1&highlight=$2 [L,NC]
    RewriteRule /about([^.]+).html&view=newest$ viewtopic.php?t=$1&view=newest [L,NC]
    RewriteRule /about([^.]+)\-([^.]+)\-([^.]+)\-([^.]+)$ viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
    RewriteRule /about([^.]+)\-([^.]+)$ viewtopic.php?t=$1&start=$2 [L,NC]
    RewriteRule /about([^.]+)$ viewtopic.php?t=$1 [L,NC]
    RewriteRule /about([^.]+)\.html$ viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
    RewriteRule /mark\-forum([^.]+)\.html* viewforum.php?f=$1&mark=topics [L,NC]
    RewriteRule /updates\-topic([^.]+)\.html*$ viewtopic.php?t=$1&watch=topic [L,NC]
    RewriteRule /stop\-updates\-topic([^.]+)\.html*$ viewtopic.php?t=$1&unwatch=topic [L,NC]
    RewriteRule /forum\-([^.]+)\.html$ viewforum.php?f=$1 [L,NC]
    RewriteRule /forum\-([^.]+)$ viewforum.php?f=$1 [L,NC]
    RewriteRule /topic\-([^.]+)\-([^.]+)\-([^.]+)$ viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
    RewriteRule /ptopic([^.]+)$ viewtopic.php?t=$1&view=previous [L,NC]
    RewriteRule /ntopic([^.]+)$ viewtopic.php?t=$1&view=next [L,NC]
    
    
    Code (markup):
    I get an error 404 with ´post-(number).html´ & ´post-(number).html#number why would this be? Can I rejiggle this above to help me out?

    Thanks for any help
    SEMrush
     
    webdesignlab, Nov 22, 2005 IP
    SEMrush
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    RewriteRule /post\-([^.]+)\.html&highlight=([^.]+)$ viewtopic.php?p=$1&highlight=$2 [L,NC]

    I'm guessing you don't want

    &highlight=

    in the final URL.
     
    Nintendo, Nov 22, 2005 IP
  3. webdesignlab

    webdesignlab Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Blimey as usual you are right on it Nintendo.

    Thanks a lot

    Web
     
    webdesignlab, Nov 25, 2005 IP