• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Using WAMP instead of XAMPP reduces the pain to some extent. But it is always unpredictable to activate advanced features as they are basically emulation.

    For getting all the advanced features use a Ubuntu 12.10 / any Linux installation for fully working WordPress on localhost without any headache. mod_rewrite module is needed for .htaccess. You can use your Ubuntu bootable live installation as a real server but offline. No WAMP / XAMPP will be needed. For multiple sites emulation you will require to config VirtualHost. All has well documentation. Plus, if you have a static IP, you can use it as your own server for testing purposes.

    If your processor supports virtualization then you can run Ubuntu using free VMWare Player. VMware player is free and you will not need rebooting unlike the above method.

    Thread Starter markf1

    (@markf1)

    Thanks for your reply! I solved the problem by disabling permalinks on localhost. Now the sites functions properly on localhost.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘.htaccess and permalinks problem’ is closed to new replies.