• 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

jamalfree

Active member
#1
redirect all website to one page htaccess 301

i use this but didn't work perfectly


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

Jake Bunce

XenForo moderator
Staff member
#2
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:

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