.htaccess and permalinks problem
-
I have installed xampp and wp on my localhost. I have successfully copied over and installed in xampp/htdocs/xampp all of the site files and the MySQL database file from an existing online custom theme WordPress site. I can open the site on my localhost and I can log in to the WP dashboard on my local host. all of the posts and pages and plug ins and everything is there. The site looks and functions on my localhost just like it does online. Yeah.
But there is one problem and I just cannot figure it out. When I view the site on local host – none of the navigation links work. For instance there is a nav menu item “INFO” and a corresponding INFO page. I can see the INFO page and all of it’s content in the WP dashboard and edit it in the dashboard editor. But if I click preview I get a “The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated.” error. the same thing happens if I click on the nav menu link. This is true for all of the pages/nav menu links.
I believe this is related to permalinks and the .htaccess file. If go to the permalinks section of th eWP dashboard, that automaticly causes a .htaccess file to be created at the root of the WP install. Once that /htaccess file gets created I cannot view any of the site on localhost. If I delete the .htaccess file I get the site back but with the nav link page not found problem
I’ve googled the problem and tried a variety of things, including the links below, but just can’t get it to work.
http://www.lancelhoff.com/how-to-make-wordpress-permalinks-work-in-xampp/
http://www.php-developer.org/htaccess-in-wordpress-xampp-localhost/
Does anyone here have any experience with this and any suggestions? I’m so close to having this working but just can’t get past this. TIA for any help.
The topic ‘.htaccess and permalinks problem’ is closed to new replies.