How can I change my homepage URL in Wordpress?

Asked

Viewed 190 times

1

I have a site in Wordpress, when access it gets dominio.com, but I want only the index from it move to www.dominio.com/home.

That is, when you access www.dominio.com, change to www.dominio.com/home (That is, only when you access the home page, the other pages stay as they are).

1 answer

2


Just put that stretch on .htaccess:

<IfModule mod_rewrite.c>

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^([^/]+)/$ $1.php
DirectoryIndex home.php

</IfModule>

Thus home.php will have priority over your files and will not appear file extension .php

  • You have erred: http://prntscr.com/j2afy1

  • you should rename the file index.php for home.php

  • Just to understand, when added to line DirectoryIndex home.php, means that by going to example.com it will fetch the file defined on the line (home.php), if not exsitir it will show a list of files that exists in that directory, as in the image

Browser other questions tagged

You are not signed in. Login or sign up in order to post.