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.

$10 for whoever solves simple mod rewrite problem

Discussion in 'Apache' started by mizt, Jun 15, 2005.

  1. #1
    To make a long story short. I need all http://carcommons.com/archive/*****.htm to become http://carcommons.com/*****.htm . There a little twist though. I need to add something into the URL because the current mod rewrite isn't doing it.

    http://carcommons.com/archive/chevy-250292-exhaust-manifold-5384.htm needs to become
    http://carcommons.com/chevy-250292-exhaust-manifold-vt5384.htm

    I had a archive mod installed (PhpBB) but its no longer working. Yet google index nearly 8,000 pages of them which now come up blank. I'm loosing a few hundered vistors an hour. Any help is appericated. Let me know if you need any more info.

    Paypal of course or a PR 4 Sitewide (12,000 pages) for a month.
     
    mizt, Jun 15, 2005 IP
  2. crazyhorse

    crazyhorse Peon

    Messages:
    1,137
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi i had the same kind of problem before. I had old links still indexed like forum.mydomain.com. I used this mod rewrite to fix it. Im not sure if this is what you are asking but my intentions are good.
     
    crazyhorse, Jun 15, 2005 IP
  3. Dejavu

    Dejavu Peon

    Messages:
    916
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    0
    #3
    how about

    RewriteEngine On
    RewriteBase /
    RewriteRule ^archive/(.*)$ /$1
     
    Dejavu, Jun 15, 2005 IP
  4. mizt

    mizt Active Member

    Messages:
    772
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Ok all I need to do is figure out how to add the vt in my variable.

    RewriteEngine On
    RewriteBase /
    RewriteRule [.]*-vf([0-9]*) viewforum.php?%{QUERY_STRING}&f=$1
    RewriteRule [.]*-vp([0-9]*) viewtopic.php?%{QUERY_STRING}&p=$1
    RewriteRule [.]*-vt([0-9]*) viewtopic.php?%{QUERY_STRING}&t=$1
    RewriteRule ^.+\.html$ index.php [L]
    RewriteRule ^.+\.htm*$ index.php [L]
    RewriteRule ^member-.+\.html*$ index.php [L]
    RewriteRule ^members.+$ index.php [L]
    RewriteRule ^(.+)/$ index.php [L]

    Any ideas
     
    mizt, Jun 15, 2005 IP
  5. Dejavu

    Dejavu Peon

    Messages:
    916
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    0
    #5
    sorry I didn't notice you replied.. have you fixed it yet?
     
    Dejavu, Jun 18, 2005 IP
  6. mizt

    mizt Active Member

    Messages:
    772
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    70
    #6
    mizt, Jun 18, 2005 IP
  7. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #7
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^chevy-250292\-exhaust\-manifold\-vt5384\.htm$ archive/chevy-250292-exhaust-manifold-5384.htm [L]

    or

    RewriteRule ^chevy\-(.*)\-exhaust\-manifold\-vt(.*)\.htm$ archive/chevy-$1-exhaust-manifold-$2.htm [L]


    ???
     
    Nintendo, Jul 29, 2005 IP