WordPress.org

Support

Support » How-To and Troubleshooting » How can i direct my main domain to a certain page

How can i direct my main domain to a certain page

  • HexiumVII

    @hexiumvii

    Instead of the front wordpress page i want a different page setup as the front. Is there a way to do this? I have my DNS setup with my server already, it uses cernax, maybe there is some option in there? Or do i have to setup a forward from my domain registrar, i don’t think that will work though.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Kafkaesqui

    @kafkaesqui

    You only need set up a home.php with your theme, and use this to display what you want for your “home” page.

    Well, there are two main ways to do this. First all if you want a wordpress page as the front page then there a few plugins that will do this. I think the best one is the the Static Front Page Plugin
    The second way is by using your .htaccess file to change the page users see when they visit your site. You can do this by inserting this code into your .htaccess file:

    DirectoryIndex main.php index.php

    What this does is whenever a computer visits your domain your server shows them main.php as the top level page. If it cannot find a main.php it will go back to serving the index.php file

    Hope this helps,
    Cron

    HexiumVII

    @hexiumvii

    Wow your awesome thanks. I forgot about .htaccess. I worked with apache so long ago i forgot most of the stuff.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can i direct my main domain to a certain page’ is closed to new replies.
Skip to toolbar