XF 1.5 Redirection using cPanel

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.
 
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]
 
Top Bottom