Results 1 to 8 of 8
  1. #1
    Merchant & ABW Ambassador
    Join Date
    May 31st, 2006
    Location
    Houston TX
    Posts
    4,731
    Getting access to WP blog - Accidentally changed domain
    Hey Guys.

    Did a stupid mistake and i am trying to correct it.

    I developed a site on a Dev URL. Just bought a new domain.

    In the Control Panel of my Dev domain, I changed it but missed out a character.
    Now i cannot get access.

    Does anybody know the file name of the PHP file so that i can correct it?

    Thanks

  2. #2
    ...and a Pirate's heart. Convergence's Avatar
    Join Date
    June 24th, 2005
    Posts
    6,918
    Try wp-config.php...
    Salty kisses, Sandy toes, and a Pirate's heart...

  3. #3
    Merchant & ABW Ambassador
    Join Date
    May 31st, 2006
    Location
    Houston TX
    Posts
    4,731
    Thanks. I found it.

    It is in the mySQL DB

    localhost >> your-DB-name >> wp_options >> siteurl

  4. Thanks From:

  5. #4
    15 years and counting
    Join Date
    January 18th, 2005
    Posts
    6,121
    wp-config.php will change only the MySQL settings.
    My best bet would be to access your database thru phpMyAdmin and change wp_options "option_name" siteurl "option_value" your new site url

  6. Thanks From:

  7. #5
    Merchant & ABW Ambassador
    Join Date
    May 31st, 2006
    Location
    Houston TX
    Posts
    4,731
    Thanks Zeus.

    After lots of googling, I found the instruction on WP org sites.

    I had an S in the URL. Fat fingers and click happy

  8. #6
    ...and a Pirate's heart. Convergence's Avatar
    Join Date
    June 24th, 2005
    Posts
    6,918
    Awesome. I'll have to bookmark this for future reference...
    Salty kisses, Sandy toes, and a Pirate's heart...

  9. #7
    15 years and counting
    Join Date
    January 18th, 2005
    Posts
    6,121
    I've been hacked a few times. If the hacker changes your password, phpMyAdmin can help you to access your site and replace the password, kick out some users... and do a check of your db.

  10. #8
    ABW Ambassador 2busy's Avatar
    Join Date
    January 17th, 2005
    Location
    Tropical Mountaintop
    Posts
    5,636
    Whenever I set up a new WP site, I export the db .SQL file and do a find and replace to alter the default wp_ names throughout the file (maybe change to k6e_ or something). That is the first "old" hardening rule I learned. It simply makes it much more difficult to hack a WP site if the postmetadata is not wp_postmetadata. After changing the wp_ prefix, I do an Import of the SQL file in phpMyAdmin and drop the tables. Step 2: Don't forget to change the wp-config.php file to use the same prefixes.

  11. Thanks From:

  12. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Affiliate Blog - should I buy a new domain or put it on my current one?
    By thomasv in forum Blogging, Mobile and Social Media
    Replies: 21
    Last Post: March 29th, 2011, 04:17 AM
  2. Can a Newly Changed Domain Rank Well?
    By DesignSoft in forum Search Engine Optimization
    Replies: 6
    Last Post: April 14th, 2010, 08:20 PM
  3. Question about 301 redirect and moving blog to domain
    By writerguy in forum Blogging, Mobile and Social Media
    Replies: 8
    Last Post: September 18th, 2008, 09:06 PM
  4. Is it possible to accidentally post in IC?
    By SSanf in forum Midnight Cafe'
    Replies: 1
    Last Post: October 27th, 2004, 08:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •