A small problem with my .htaccess file and .301 redirects ...

Discussion in 'Apache' started by JackR, Jan 30, 2006.

  1. #1
    I'm currently using the following .htaccess file:

    -The problem is that two of the redirects are producing strange URL extensions:

    http://www.spicegirls.ws/London_escorts_portfolio.htm
    redirects to:
    http://www.spicegirlslondonescorts.com/London_escorts_portfolio.htm?a=g

    and:

    http://www.spicegirls.ws/joinus.htm
    redirects to:
    http://www.spicegirlslondonescorts.com/joinus.htm?a=j


    -What are the ?a=g and ?a=j extensions - and how do I get rid of them?

    Please help if you can.
     
    JackR, Jan 30, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    RewriteRule ^London_escorts_portfolio.htm$ /cgi-bin/escorts.cgi?a=g [NC,L]
    RewriteRule ^joinus.htm$ /cgi-bin/escorts.cgi?a=j [L]

    It might be fighting over 301 and mod_rewrite.
     
    Nintendo, Jan 30, 2006 IP
  3. JackR

    JackR Peon

    Messages:
    360
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks nintendo - I thought as much.

    Can you tell me what to edit/delete?
     
    JackR, Jan 30, 2006 IP