WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Trouble switching URLs, lost all WP paths & admin capability. (2 posts)

  1. chriscalef
    Member
    Posted 1 year ago #

    Hello,

    I'm not a pro in WP but I'm trying to help my friend move her site. We changed the URL to do some further work on it before switching the domain, and I did the safe search-and-replace script in the DB, fixed everything I could find with a hardcoded URL in the php scripts, and updated wp-config. However, while the database hooks up and the front page displays more or less correctly, all of my links are dead, as well as the wp-admin section. Everything using a local WP path gives me a 404 except the top index page.

    Any idea where I could start looking? Competent in php but not in WP.

    Thanks!

  2. chriscalef
    Member
    Posted 1 year ago #

    Ah, well, dreamhost fixed my bug for me (YAY dreamhost!!), but just to alleviate the suspense I'm sure everyone is feeling over it, here is what my problem was: the site made use of Permalinks, and in its new location we did not have an .htaccess file, which needed to exist and have the following code in it:

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

    Now ya know! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic