Forums

[resolved] blog-transfer to localhost/xampp (5 posts)

  1. Dantes100
    Member
    Posted 4 years ago #

    Hi,

    I successfully transferred my blog to my computer with xampp. I now see the front page of the blog and the wp-admin with localhost/wordpress. However, whenever I click on an article-permalink I get an apache 404-page.

    I reinstalled a database back up and replaced all myblog.com with localhost/wordpress/.

    What went wrong?

    Thx
    Dantes

  2. Dantes100
    Member
    Posted 4 years ago #

    I figured out that if I change the permalink structure back to "default" everything is fine.

    Back to "/%postname%/", and I get the 404 again.

    Any suggestions?

  3. f888
    Member
    Posted 4 years ago #

    it looks like you might have a problem with mod_rewrite
    basically, if mod_rewrite isn't active (and I think it isn't by default in xampp) the server doesn't know what to do with urls like /your-post-slug/, hence those posts won't work
    I made a quick search for it and found this
    http://www.mydigitallife.info/2006/03/08/wordpress-permalinks-does-not-work-in-xampp-setup/

  4. doodlebee
    Member
    Posted 4 years ago #

    You're right - mod_rewrite is turned off by default in XAMPP. You need to uncomment that line in your apache httpd.conf file, and then restart apache.

  5. Dantes100
    Member
    Posted 4 years ago #

    Thank you, f888, worked like a charm :) .

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags