RedirectMactch Question and Problem

Discussion in 'Apache' started by offline, Jan 2, 2008.

  1. #1
    Hello!
    I am trying to do the following redirect and cannot seem to get it to work so I was hoping someone could help me solve this problem...

    <VirtualHost redirect.morris.com>
       ServerName pets.savannahnow.com
       RedirectMatch / http://class.savannahnow.com/classifieds-bin/classifieds?tp=Savannah%20Classifieds&classification=Classifieds&tem
    p_type=toc
       CustomLog /dev/null common
       ErrorLog /dev/null
    </VirtualHost>
    Code (markup):
    And when I go to pets.savannahnow.com this shows up as the URL http://class.savannahnow.com/classifieds-bin/classifieds%3ftp=Savannah%2520Classifieds+classification=Classifieds+temp_type=toc

    Obviously the Apache RedirectMatch statement is changing the output that I would like to send. Can someone give me a pointer on where to look to fix this?

    Thanks Again!

    Chris Edwards
     
    offline, Jan 2, 2008 IP
  2. offline

    offline Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Nevermind, I just did a Redirect 301 instead of a RedirectMatch and it worked.
     
    offline, Jan 2, 2008 IP