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

Redirect home page via htaccess

ArnyVee

Well-known member
#1
Hey there,

I want my recent activity page to be my home page when folks visit my domain. So, I'd like to see what I should place in my .htaccess file in order to move folks from mypage.net to mypage.net/index.php?recentactivity
 

ArnyVee

Well-known member
#4
Does it matter where I include the line on the htaccess file?

Also, I just noticed that there is an htaccess.txt file ... should that be renamed to remove the .txt portion?
 

Jake Bunce

XenForo moderator
Staff member
#5
This will redirect only the root URL. This can be added to the top of the default .htaccess file if you are using that file:

Code:
RedirectMatch ^/$ /index.php?recent-activity
This works well without friendly URLs. But if you are using friendly URLs then the root URL is the forum index which means this redirect effectively overwrites the forum index making it inaccessible.