1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Redirection using cPanel

Discussion in 'XenForo Questions and Support' started by Reeses, Jan 25, 2016.

  1. Reeses

    Reeses Member

    Hey there! I am using cPanel and am looking to redirect for example mydomain.com/test123 to google.com.

    However, when this happens I am brought to an XenForo 404 stating that the page was not found. I understand I probably need to edit something inside my .htaccess to allow the redirection to occur...but I am not sure what to do.

    Are there Xenforo addons for this as well? Thanks.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I assume XenForo is in the web root?

    CPanel is probably overwriting XenForo's .htaccess file.

    Just edit XenForo's .htaccess file directly. Add these rules to the top:

    Code:
    RewriteEngine On
    
    RewriteRule ^test123$ http://www.google.com/ [R=302,L]
    
     

Share This Page