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

XF 1.4 redirect all website to one page htaccess 301


Active member
redirect all website to one page htaccess 301

i use this but didn't work perfectly

RewriteRule ^(.*)$  http://www.example.com/ [R=301,L]

Jake Bunce

XenForo moderator
Staff member
Need more info... but if that rule is in the web root (same as the redirect target) then it will cause infinite redirection. Try this to avoid that:

RewriteRule ^$ - [S=1]
RewriteRule ^(.*)$  http://www.example.com/ [R=301,L]