WordPress htaccess and permalinks

I have a WordPress site that I am trying to recreate locally for development purposes. I want to be able to test things and makes changes without touching the live site.  

I have obtained the SQL backup and my files (images, etc)  and installed WordPress locally. I am using WAMP and have changed the site address to http://localhost.  Everything is up and running for the most part except my menu items and the link structure.

Right now on my live site I have a menu bar across the top that links to subpages using the format of  domain.com/pagename for example:  /career,  /contact, /about, etc.   Those links are all broken.  I get a page cannot be found error.  I can get to the pages and verify they are functional by going to the pages section of the admin and launching "view" from there, when they launch they have the URL of Domain.com/?page_id=XX  

If I go into the permalinks settings and change it from default to post name my menu items still do not work and when I go back to pages to try to launch them using "view" they will then no longer load at all.  

What do I need to do to get the menu items to load using the URL structure of Domain.com/pagename
Who is Participating?

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

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.

A. Cristian CsikiSenior System AdministratorCommented:

Add in C:\Windows\System32\Driver\Etc\Hosts the domain as:    yourdomain.com

Now load your website as: yourdomain.com not as localhost

Maybe your permanent links in db are containing the hostname.

Let me know if this helped you.

Kind regards,
Mandeep SinghDatabase AdministratorCommented:

Please go through below link and do changes in Apache as described.

WordPress Custom Permalink Not Working In Localhost

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
scooter1977Author Commented:
Worked like a charm and so simple.  Many thanks !
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

From novice to tech pro — start learning today.