Slug in URL for homepage (but it still need to be "front page")

Hi @Ashok , moving from a chat to here. Last part of our conversation is bellow, access is already granted.


Ohh you mean you need to set a slug in front page, right?

That means, instead of you want as your front page. So if someone enters it will redirect to

Am I right?




1. Create a page from Pages > Add New, name it anything

2. From reading settings, make it front page

3. Add the following code in your theme’s functions.php:

add_action( ‘template_redirect’, ‘template_redirect_cb’ );

function template_redirect_cb() {

if( is_front_page() ) {

wp_redirect( ‘YOUR HOME PAGE URL’ );






my site: