Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice