XF 1.5 Redirection using cPanel

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.

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:

RewriteEngine On

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