• Resolved lstoops

    (@lstoops)


    I want my blog to pull up when someone enters mysite.com and not mysite.com/blog how do I fix this problem? If you enter mysite.com it pulls up 404. Please help!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • kmessinger

    (@kmessinger)

    Put an index.html page into your root directory at mysite.com with thisin the head,

    <script type="text/JavaScript">
    <!--
    function MM_goToURL() { //v3.0
      var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
      for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    }
    //-->
    </script>
    </head>

    and this in the body

    <body onload="MM_goToURL('parent','https://www.mysite.com/blog');return document.MM_returnValue">
    </body>
    </html>
    kmessinger

    (@kmessinger)

    There is a much easier way also. Use your index.php file. Put it into your root directory. You won’t need the html page.

    Thread Starter lstoops

    (@lstoops)

    Thanks for the easier way! :)Is my root directory is my public folder?

    moshu

    (@moshu)

    Actually, redirects are evil – for WP.
    You shouldn’t use them.

    If it is a new blog, you could just delete the whole thing from that folder and install it in the root (public_html or htdocs or whatever is called on your server).

    Another option is: Moving_WordPress

    And finally, in cases like yours nobody should recommend using redirect gizmos like above but the following tutorial from the Codex:
    Giving_WordPress_Its_Own_Directory

    Thread Starter lstoops

    (@lstoops)

    Okay, moshu, so delete and reinstall at the public_html? Sorry, I’m sooo new. This is a new blog and new installation. I got hosting at blue host and proceeded with the download. I followed the 5 min install. I install WP and can access my admin panel. But, when I enter startupparent.com (first I got 404) and now I’m getting the page isn’t redirecting properly message. I just want to be able to type startupparent.com and get my blog. Can you help?

    moshu

    (@moshu)

    Stop talking about “redirecting”. There is nothing to be redirected in a normal WP instllation!

    If WordPress has been installed in a subdirectory, like example.com/blog
    but you want it to be displayed at
    example.com

    then all of the solutions I posted above would do it. If you don’t know what to delete – use the third option: Giving WordPress its own directory.

    Thread Starter lstoops

    (@lstoops)

    Okay, thanks. I installed in root. Now, what should my index.php say? I think that is what is wrong now…

    Thread Starter lstoops

    (@lstoops)

    why am I getting…

    Warning: require(./wordpress/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/startupp/public_html/index.php on line 4

    Fatal error: require() [function.require]: Failed opening required ‘./wordpress/wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/startupp/public_html/index.php on line 4

    moshu

    (@moshu)

    If you installed it in the root – you should use the original, unedited index.php.

    Thread Starter lstoops

    (@lstoops)

    thanks!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘I installed but need to fix url problem’ is closed to new replies.