Support » Fixing WordPress » Trouble switching URLs, lost all WP paths & admin capability.

  • Resolved chriscalef

    (@chriscalef)


    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!

Viewing 1 replies (of 1 total)
  • 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! 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Trouble switching URLs, lost all WP paths & admin capability.’ is closed to new replies.