1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[HELP] Get rid of old WP site and get a new fresh clean install

Discussion in 'Blogging' started by xbuckz, Apr 13, 2015.

Tags:
  1. xbuckz

    xbuckz Newbie

    Joined:
    Jul 8, 2013
    Messages:
    14
    Likes Received:
    1
    Hey guyz !

    So i have a website , mainly food blog and recipes stuff and now i want to get it revamped , i want a new theme and a fresh clean instal on the same domain.

    Problem :

    i need to delete all the WP stuff from the domain cuz i will use the same domain , and my biggest concern is GOOGLE , cuz i have some pages indexed .

    The question is , how can i do what ive wrote , like deleting old website , get the content in the new one , different permalinks etc , and still not messed up on google rankings , like webmasters tool full of errors , cuz i will get new links from the new categorys and so on , what should i do ?
     
  2. pxoxrxn

    pxoxrxn Supreme Member

    Joined:
    Dec 21, 2011
    Messages:
    1,398
    Likes Received:
    2,072
    Why not just delete all files and folders except the wp-content folder and start again. Use the same database and run the database updater when prompted. I'm not sure what the advantage of doing this is, but you can do it. Or you could just change the theme, update wordpress and get on with your day.
     
  3. xbuckz

    xbuckz Newbie

    Joined:
    Jul 8, 2013
    Messages:
    14
    Likes Received:
    1
    cuz my webmasters tool is full of erros and the wp intall folder is full of s*** also im just concerned with the permalinks , cuz i m gettink erros on all post's

    EX :

    domain /post-name/WWW

    yes i got like 500 erros just the same getting www on the end of evey post
     
  4. TimothyEyton

    TimothyEyton Junior Member

    Joined:
    Dec 30, 2013
    Messages:
    129
    Likes Received:
    62
    I think what pxoxrxn meant to say is to delete only the wp-content directory. It sounds like you want to keep your content so if you were just looking for a new theme, then you could just delete the existing themes from the wp-content and start over with a new theme. However, I'm assuming you're not wanting to do that because you want to get rid of the issues you're having with the permalinks.

    Anyways, I don't think it would be too big of a deal for the search engines... Here's what you need to do.

    1. Install your new theme.
    2. Update whatever permalinks you want to fix.

    There's no need to really do a fresh install from what you're telling us.

    Now in regards to the search engines stuff, what you will want to do is create 301 redirects for every permalink you want to change.

    I'd suggest using htaccess and here's a little example of what it would look like.
    Code:
    [B]Redirect 301 /post-name1/WWW http://example.com/new-permalink1
    Redirect 301 /post-name2/WWW http://example.com/new-permalink2
    Redirect 301 /post-name3/WWW http://example.com/new-permalink3[/B]
    
    Note: You just have to add this to the existing .htaccess file in your root directory.

    This will cover your ass with the search engines because 301 is a "permanent redirect" and it's telling them that this page has been permanently been moved this other page you specify. It passes along any link juice, and also any users will be redirected to the new URL if they try to access the old one.

    Anyways, I hope this helps :) It should be pretty straightforward, unless you have a thousand different links you need to update or something. But even then there's probably ways you could get it updated in bulk as long as you don't want to be too picky with the new permalinks.

    Good luck!
     
    Last edited: Apr 13, 2015
  5. xbuckz

    xbuckz Newbie

    Joined:
    Jul 8, 2013
    Messages:
    14
    Likes Received:
    1
    like i said my root folder is full of stuff and i don't know what is neede or don't so i wanted to delete all , also it's lots of permaliks messed up , and i can't seem to find the htacess :S , im getting frustrated , .... i just want to fresh install wp on my root folder , get my theme and configured and get my content on the website :S
     
  6. pxoxrxn

    pxoxrxn Supreme Member

    Joined:
    Dec 21, 2011
    Messages:
    1,398
    Likes Received:
    2,072
    I don't see how you could have files/folders in your WP directory that you don't need.

    You could always dump your posts table, do the fresh install and then import the posts table in phpmyadmin.

    No I don't, if you delete the wp-content folder you'll lose all the images that are assigned to posts. You'll have to go in and manually replace then and then remove the old links to images from the database, that would be a pain in the rectum.

    OP: I suggest you learn more about WordPress and hosting before you progress.
     
  7. xbuckz

    xbuckz Newbie

    Joined:
    Jul 8, 2013
    Messages:
    14
    Likes Received:
    1
    i'm aware of wp , the thing is i don't want google to lower ranking me when i do change things u know , also i wanted the clean fresh install cuz of all the plugins for eyers i tried and left some files , u know what i mean , but basiclly if i delete the rest and left the content folder there the permalink structure will not be affected?
     
  8. TimothyEyton

    TimothyEyton Junior Member

    Joined:
    Dec 30, 2013
    Messages:
    129
    Likes Received:
    62
    Ok I understand :) If you insist on deleting it all and doing a fresh install, you can do exactly that. I sort of understand it too, since sometimes things can look like a big mess and it might just be easier to just reset everything.

    Before you do anything though you should first take a complete backup of your website including your database. It's always nice to have a backup incase something goes wrong, and in this scenario there aren't certain aspects that may need to be restored... So next, follow these steps. (after taking a backup)

    1. Delete all web files in your FTP. Well... from your "public root" directory just incase your Web Host shows server files or anything else like that. Make sure to leave any type of stats folder like awstats.

    2. Goto Wordpress.org and download the new install of WP and extract it, and re-upload to your FTP.

    3. Restore your wp-config.php to your root directory (the one from your backup). All of your website content is stored in your database which we have not yet touched. The wp-config.php file is linking your Wordpress installation back up with your database.

    4. Upload your new theme into the wp-content/themes folder.

    5. Login to your database, then go to the wp_options folder and find the themes row and change the theme name to your new theme name.

    6. If you already have plugins downloaded, or if you were ok with using the same plugins from your backup, just moves them into the wp-content/plugins folder. Otherwise while logged into that same wp_options table, go to the plugins row and disable them all so that your database/website isn't giving errors because the plugins don't exist on your website. Later on you can just add them back in normally.

    7. Within that same wp_options database table, there should be 2 rows... I think one says something like siteurl and the other is homeurl. Make sure those have the root URL (or whatever you're installing your WP to).

    8. From your backup, restore the uploads folder from wp-content. This will restore any images you have on your pages.

    9. By now you should have an htaccess file, but if not, login to your WP panel and enable permalinks, or do a Google search for "default wordpress htaccess" and add it into the root directory of your website.

    From here it's just a matter of following the steps from my first post. Just login to each of your posts and change the permalink, and then add the redirect into your htaccess file. If you still don't see the htaccess file, it's probably because your FTP client hides files starting with dots (.htaccess). Just go into the settings in their should be an option to NOT hide those types of files or "system" files they may call them.

    It might sound complicated by it won't be too bad. The important thing to know is that all of your website content is stored in your database. You just delete all your files (that you see in FTP) and then reinstall WP, and reconnect things back up with a few quick tweeks. As long as you have you backup then you have nothing to worry about.
     
  9. TimothyEyton

    TimothyEyton Junior Member

    Joined:
    Dec 30, 2013
    Messages:
    129
    Likes Received:
    62
    Naw, the permalinks have nothing to do your file structure. They're all stored within your database. You do however need the .htaccess file. That is what enables the permalinks to work for your site.

    Getting rid of your wp-content folder just deletes your themes, plugins, and images(uploads which can also be pdf's and stuff).
     
    Last edited: Apr 13, 2015