XF 1.4 redirect all website to one page htaccess 301

jamalfree

Active member
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
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]
 
Top