Forums

[resolved] How to make index page same as my old URL? (5 posts)

  1. jls6c
    Member
    Posted 2 years ago #

    Apologies if this has been asked many times already -- I tried searching and couldn't come up with anything.

    My old non-Wordpress blog has the URL example.com/blog.html

    I have just installed WP successfully, and would like the front page of my blog to have this same URL. But it seems that WP publishes to a file named index.php. Will I have to change the URL for my blog to something like example.com/blog/ to accommodate the index file, or is there a simple workaround?

  2. Saildude
    Member
    Posted 2 years ago #

    Follow the instructions exactly, they look a bit complex but are fairly simple. To move to the root it is a copy and tweak two files and some small changes in the Dashboard.

    if you're already set up successfully - just move your install to root now
    http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Site
    or
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  3. jls6c
    Member
    Posted 2 years ago #

    Thanks; I actually installed WP in my root directory, since that's where my current blog is located. But the issue is that I don't see how to make the front page of my new WP blog have the same URL -- example.com/blog.html -- as opposed to example.com/index.php. The blog is not located on the front page of my site... see http://www.slowpokecomics.com/blog.html Know what I mean?

  4. Saildude
    Member
    Posted 2 years ago #

    WordPress requires you to use index.php.

    I prefer to have WordPress files in a sub-directory as that keeps the root cleaner, less chance of getting the WordPress files mixed with your main site, then just change the line of your code on the main page to send readers to the directory that has WordPress installed in it and the index.php will load WordPress. I used that method on my original site until I put my entire site on WordPress. Something like //example.com/wordpress/

    Am I getting closer to the information you need?

  5. jls6c
    Member
    Posted 2 years ago #

    Yes, that answers my question, thank you very much. I'm going to move the files to a sub-directory as you mention.

Topic Closed

This topic has been closed to new replies.

About this Topic