How can i direct my main domain to a certain page (4 posts)

  1. HexiumVII
    Posted 9 years ago #

    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.

  2. Kafkaesqui

    Posted 9 years ago #

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

  3. cron
    Posted 9 years ago #

    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,

  4. HexiumVII
    Posted 9 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.