Forums

I change my Site address (URL) and f***ed everything up. Please help! (6 posts)

  1. orrpatrick
    Member
    Posted 7 months ago #

    I was following the directions on giving wordpress it's own directory>Using a pre-existing subdirectory install and I managed to screw everything up.

    Here is the situation:

    I changed the site url from 'www.site.com/wordpress/' to 'www.site.com'
    I have overwritten my htacess file with the wordpress one, and I can't get into my admin panel to see what is happening. When I do it just redirects and I get a 404.

    Original Site: http://www.site.com
    New Site: http://www.site.com/wordpress/

  2. orrpatrick
    Member
    Posted 7 months ago #

    Thanks, Jan. I will probabbly use a method like this once I get things back to normal, but right now I've lost everything. I can't access my admin panel at all.

    normally I would go to:
    http://www.site.com/wordpress/wp-admin

    Now it just redirects and I can't get it anywhere.

    Furthermore when I go to where my site was: http://www.site.com/wordpress/, it is clearly not linking to the theme because there my css is not being applied.

    Do you have any ideas of how to revert?

  3. Do you have any ideas of how to revert?

    I will probabbly use a method like this once I get things back to normal,

    Did you just change the site URL or did you actually move files? If you just changed the site URL then that article's methods are all you need to get back to normal.

    but right now I've lost everything. I can't access my admin panel at all.

    That's the appeal of temporarily modifying your theme's functions.php file. It, and the other methods in that codex article, do not require access to the blog's admin. All you need to file access via ftp or shell.

  4. orrpatrick
    Member
    Posted 7 months ago #

    Thanks so much for your support Jan.

    I did exactly what the method said regarding editing the functions.php and it got my back into my admin. Does that mean I can roll back my function.php file now and remove those settings?

    Also, regarding my situation. What do you think the simplest way to get my site site at: http://www.site.com/wordpress to be pushed live? Right now it's currently loading http://www.site.com(the old site).

    Thanks

  5. Does that mean I can roll back my function.php file now and remove those settings?

    Yep. Those edits are meant to be temporary only and now that you're able to get back in, you can remove the new additions.

    Also, regarding my situation. What do you think the simplest way to get my site site at: http://www.site.com/wordpress to be pushed live? Right now it's currently loading http://www.site.com(the old site).

    This may not be the simplest way, but it's how I'd do it...

    1 - Backup all your files and database and put that somewhere safe.

    http://codex.wordpress.org/Backing_Up_Your_WordPress_Files
    http://codex.wordpress.org/Backing_Up_Your_Database
    http://codex.wordpress.org/Restoring_Your_Database_From_Backup

    2 - Make a copy of ALL the files and directories in your /wordpress directory. Make sure you get the whole thing and sub-directories.

    3 - Put that copy on your web servers root / and make sure that there are no existing files BEFORE you do this. You don't want to break something else.

    4 - Visit http://www.site.com/wordpress/wp-admin/options-general.php and set the WordPress address and site URL to http://www.site.com

    5 - Visit http://www.site.com (less the /wordpress) and see if that works.

    If this breaks, fix the WordPress address and site url to put it back.

    If it works, pat yourself on the back.

Reply

You must log in to post.

About this Topic