How to set up a redirect to a base page?

Solved4.45K viewsCore
0

Hi

I would like to set up a ‘home’ page so that when a user goes to the root url ‘/’ I’d like to have him redirected to ‘/questions’ (maintaing the url params).

NOTE: This is analogous to what happens when you go to ‘http://anspress.io/’ and are taken to ‘http://anspress.io/questions/’.

Is this better done via wordpress settings or at the server level?

Many thanks in advance, m

0

I am doing it from .htaccess,
add this line to top of your WP htaccess:

RewriteRule ^$ questions [R=302,L]