Changed WordPress URLs - can't login now

I changed the WordPress URLs in General -> Settings and now I cannot log in.

The installation is on a Windows 2012 server, so I do not have access to phpMyAdmin.

I have tried changing settings as noted here: http://codex.wordpress.org/Changing_The_Site_URL, but I am still unable to log in.

Ideas how I can fix this?
arkhaminmate11nAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David H.H.LeeCommented:
Hi arkhaminmate11n,
What changes you have made in the General setting? Can you share with us the error code returned on screen?

Can you access login page (wp-login.php) ?
http://www.dummies.com/how-to/content/how-to-log-into-the-wordpresscom-dashboard.html
arkhaminmate11nAuthor Commented:
Thanks.  I was able to fix the problem.

I was not putting the following code in the right place in the functions.php file.

It needs to be at the top:

<?php
update_option('siteurl','http://example.com');
update_option('home','http://example.com');

Once I did this, I was able to get back in.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David H.H.LeeCommented:
Glad to hear that. You may request to close and refund your pts.
arkhaminmate11nAuthor Commented:
I was able to fix the problem on my own.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.