The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

redirects no longer work? using rewriterule

Discussion in 'General Discussion' started by payne, Mar 26, 2008.

  1. payne

    payne Well-Known Member

    Joined:
    May 31, 2003
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Seattle
    I noticed in a client's cpanel that adding a cpanel redirect now adds this code to the .htaccess file:

    RewriteCond %{HTTP_HOST} ^.*$
    RewriteRule ^oldLocation$ newLocation [R=301,L]

    Instead of what it used to add, which was:
    RedirectMatch permanent ^oldLocation$ newLocation

    The new ones no longer work for me. Can someone confirm that cpanel has changed how redirects are added? Can anyone tell me why the new ones aren't working for me anymore?

    P.
     
Loading...

Share This Page