SitePoint Sponsor

User Tag List

Results 1 to 16 of 16
  1. #1
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cloning Wordpress site locally using xampp-problem!

    Hi. Am cloining my wordpress blog to my local server, but having a problem that my homepage displays, but cannot get other webpages to display. Have edited my url's to suit localhost address, but I click on one of my links and it just directs me to my default localhost/xampp page every time I click on a link.

    Here is checklist that have done

    Download my website to local folder using FileZilla, edited my wp-config.php

    Exported my database using PHPmyAdmin and imported to my phpmyadmin locally and edited wp-options home and site url to suit my localhost directory.

    Edited my links on my pages to suit localhost links.

    Any idea where I could be going? As mentioned my homepage is fine all graphics, stylesheets etc are all working, but cannot get to another page.

  2. #2
    SitePoint Evangelist snecz's Avatar
    Join Date
    Mar 2007
    Location
    Warsaw, Poland
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check out permalinks structure or htaccess file maybe.
    Warsaw - the city that survived its own death.
    EMM8 - Profesjonalne Strony Internetowe
    Projektowanie Stron WWW

  3. #3
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My permalinks are set to postname

    and not usre if anything is wrong with my htaccess file?


    htaccess file is as follows

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /gomanandvan/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /gomanandvan/index.php [L]
    </IfModule>

  4. #4
    SitePoint Evangelist snecz's Avatar
    Join Date
    Mar 2007
    Location
    Warsaw, Poland
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks ok...
    I had the same problem lately... What's the url under the page link when you look at the source?
    Warsaw - the city that survived its own death.
    EMM8 - Profesjonalne Strony Internetowe
    Projektowanie Stron WWW

  5. #5
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's the url under the page link when you look at the source?
    Sorry dont know what you mean? Are you on about my localhost address? if so http://localhost/gomanandvan/

  6. #6
    SitePoint Evangelist snecz's Avatar
    Join Date
    Mar 2007
    Location
    Warsaw, Poland
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dthomas31uk View Post
    Sorry dont know what you mean? Are you on about my localhost address? if so http://localhost/gomanandvan/
    Take a look at source view...What is the link to page that you cannot see... (<a href="???" >Services</a>)
    Warsaw - the city that survived its own death.
    EMM8 - Profesjonalne Strony Internetowe
    Projektowanie Stron WWW

  7. #7
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry bit slow there. Yeah my link is localhost/gomanandvan/services Have even tried to enter the link address in the browser url address, but does not go to the page just reverts to http://localhost/xampp/ Proper head scratcher

  8. #8

  9. #9
    SitePoint Evangelist snecz's Avatar
    Join Date
    Mar 2007
    Location
    Warsaw, Poland
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try disable permalinks and try again
    Warsaw - the city that survived its own death.
    EMM8 - Profesjonalne Strony Internetowe
    Projektowanie Stron WWW

  10. #10
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cannot disable permalinks snecz. Just have radio option buttons to select which are default, Day and name, Month and name, Numeric, post name and custom structure?

  11. #11
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have set permalinks to default and still not working, don't know what the problem is. Crazy

  12. #12
    SitePoint Evangelist snecz's Avatar
    Join Date
    Mar 2007
    Location
    Warsaw, Poland
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And all the files you have in C:\wamp\www\agamaphoto\gomanandvan ?

    Sorry, it's xampp... So generally the files are in gomanandvan catalogue?
    Warsaw - the city that survived its own death.
    EMM8 - Profesjonalne Strony Internetowe
    Projektowanie Stron WWW

  13. #13
    SitePoint Enthusiast OMGCarlos's Avatar
    Join Date
    Apr 2012
    Location
    Boston, MA
    Posts
    91
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Couple things:
    * Make sure the .htaccess file for your Wordpress install is read/write for your computer user, not just read (this is what happened to me)
    * Are you absolutely sure you have the mod_rewrite module enabled on the Apache Server that RUNS xampp?
    * Open up C:/xampp/apache/apache.conf and make sure DocumentRoot is set to your projects directory
    * Edit or delete the original xampp index.html file and take out this line:
    <meta http-equiv="refresh" content="0;url=/xampp/">

    Make sure to clear your cache.

  14. #14
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Carlos. Am using a mac so will have a look for it. Will let you ASAP. Regards

  15. #15
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Carlos. Have definitely got the mod_rewrite module enabled 'LoadModule rewrite_module modules/mod_rewrite.so'

  16. #16
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Carlos. BINGO. Got it working thanks to you, much appreciated! Was having exactly same issue as you the .htaccess file for Wordpress needed to be read/write. Thank you!


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •