• cjreynolds

    (@cjreynolds)


    Hello Again…

    Created a WP site on a laptop using EasyPHP, and migrating it to my server. Copied the files to a subdirectory, created the DB & user, imported the SQL file that I exported from the laptop’s DB, and modified wp-config to reflect the new DB settings. Modified the htaccess files by inserting the following lines betwwen the # BEGIN WordPress and # END WordPress lines:

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

    When I access the subdirectory, I get a file list rather than displaying the index.php file. When I click on the index.php link, nothing happens.

    I’m assuming this is because neither my main site nor the subdirectory is configured to recognize index.php as an entry page. Is it also possible that I’m not configured to read php files at all? It seems like even if index.php is not recognized as an entry page, it still should attempt to display the page when I click on the index.php link.

    Is this a problem with my htaccess file, and if so, I’m not sure what code to add to the file, besides what I’ve already added. Also, I assume that the htaccess file in the subdirectory is the only one that needs changing – is that correct?

    Thanks again,

    joe

Viewing 2 replies - 1 through 2 (of 2 total)
  • Did you adjust URls in DB to reflect new server location?

    Thread Starter cjreynolds

    (@cjreynolds)

    Haven’t done that yet – I’ve got a search&replace script, still trying to get up the nerve to use it, LOL! Would that prevent the file from loading altogether?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Migrating WP Site – .htaccess Problems?’ is closed to new replies.