• 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

#1
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
#2
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]