Redirect home page via htaccess

ArnyVee

Well-known member
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
 
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?
 
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.
 
Top Bottom