Convert HTML Site to Wordpress

9 replies
I just tried to convert an html site with .php extensions to wordpress. Not sure if I did it correctly. It kept changing the extension from

current-page.php to current-page-php

Here is the site to show you:

The site had a page:

http://www.bestereader101.com/bebook-neo-review.php

and I wanted to keep the same .php extension as that is what Google has indexed but wordpress is changing it to:

http://www.bestereader101.com/bebook-neo-review-php/

which is not the same url. However, if I type in:

http://www.bestereader101.com/bebook-neo-review.php

it goes to:

http://www.bestereader101.com/bebook-neo-review.php/

Is this the right page or is it going to be an issue on Google?

Could anyone help with this please?
#convert #html #site #wordpress
  • Profile picture of the author xstortionist
    You should really checkout Themeforest. They have some really good tutorials on how to convert HTML to Wordpress. It's worth a shot myfriend.
    {{ DiscussionBoard.errors[4222212].message }}
  • Profile picture of the author NoBSGuy
    Why bother with php if there is themepress? The site converts html to wp automatically. Sure it does cost 10 bucks , but I`ve tried it and it worked like a charme
    {{ DiscussionBoard.errors[4222260].message }}
  • Profile picture of the author Istvan Horvath
    Originally Posted by ThomPhelps View Post

    I just tried to convert an html site with .php extensions to wordpress. Not sure if I did it correctly. It kept changing the extension from

    current-page.php to current-page-php
    Well, the first sentence doesn't really make sense... (I just tried to convert an html site with .php extensions to wordpress)

    And for sure you didn't do it correctly.
    Changing the extesion of the file type from html to php will NOT make it a WordPress site. Ever. I can tell you that without even looking at your site.

    You need to install WP.
    You need to make a WP theme (in case you want to emulate the look of the old site)
    You have to manually add the content of the old site to your WP via the admin panel > Write/add post
    Signature

    {{ DiscussionBoard.errors[4222266].message }}
    • Profile picture of the author ThomPhelps
      I did install wordpress of course! If you looked at the site you would see it is in wordpress now. I just wanted to know about the extensions and how to get the correct urls.
      {{ DiscussionBoard.errors[4222418].message }}
      • Profile picture of the author ThomPhelps
        Thanks everyone. I figured it out. I just needed to add .php to the permalink structure like this:

        /%postname%.php
        {{ DiscussionBoard.errors[4222608].message }}
        • Profile picture of the author Point Blank
          Originally Posted by ThomPhelps View Post

          Thanks everyone. I figured it out. I just needed to add .php to the permalink structure like this:

          /%postname%.php
          Sweet.. This will be useful later.
          {{ DiscussionBoard.errors[4222688].message }}
  • Profile picture of the author VegasGreg
    I haven't quite had enough caffeine yet today, but here are a few thoughts.

    I do see the site shows both urls: current-page.php and current-page-php.

    I am wondering if you set this format up in the permalinks settings (and how you set that up).

    And I am wondering if you deleted the original pages first before you recreated them inside Wordpress? Because you can't create a page that already exists, so WP will change the name to avoid that.

    So if current-page.php was still there and you go into WP and create a new page/post called current-page.php there would be issues.

    EDIT: I see you fixed it as I was typing. Cool!
    Signature

    Greg Schueler - Wordpress Fanatic... Living The Offline Marketing Dream...

    {{ DiscussionBoard.errors[4222654].message }}
  • Profile picture of the author Abledragon
    What happens if someone types in (or clicks) the OLD link to a page..? Does it re-direct to the new page?

    The reason for asking is that when moving an HTML site to WordPress (and, therefore, changing the URL structure) you're going to lose all your incoming links. People will just get 404 errors, unless you set up individual page to page redirects.

    Luckily you can add a line of code to your .htaccess files that takes care of the redirection, assuming you're still using the same domain, and assuming all your links on your old site were structured consistently - i.e. they were all .php extensions or all .html extensions.

    This article goes into a bit more detail:

    Migrate an HTML Website to WordPress | WealthyDragon

    Cheers,

    Martin.
    Signature
    WealthyDragon - Earning My Living Online
    {{ DiscussionBoard.errors[4223503].message }}
    • Profile picture of the author ThomPhelps
      Originally Posted by Abledragon View Post

      What happens if someone types in (or clicks) the OLD link to a page..? Does it re-direct to the new page?

      The reason for asking is that when moving an HTML site to WordPress (and, therefore, changing the URL structure) you're going to lose all your incoming links. People will just get 404 errors, unless you set up individual page to page redirects.

      Luckily you can add a line of code to your .htaccess files that takes care of the redirection, assuming you're still using the same domain, and assuming all your links on your old site were structured consistently - i.e. they were all .php extensions or all .html extensions.

      This article goes into a bit more detail:

      Migrate an HTML Website to WordPress | WealthyDragon

      Cheers,

      Martin.
      The old link to a page? Not sure what you mean.

      By adding /%postname%.php

      my urls are exactly the same as they were before so why would I need to worry about redirecting? If the url is the same as it was before, why would I lose incoming links? The url remained the same but the only difference is it is going to a page that is now on wordpress versus just an html page. Incoming links should not be an issue with the same page url.
      {{ DiscussionBoard.errors[4227395].message }}

Trending Topics