Support » Fixing WordPress » permalinks problems after upgrade and server move

  • Hiya

    I have moved my friends website to new hosting, and sice the move the permalinks don’t work. I’ve changed the access to .htaccess to 666 and gone to permalinks in settings (which was set as custom /%postname%/) I’ve tried changing to to different permalink settings but none work. All get a 404 error.
    I’ve changed back to /%postname%/, as that’s what I’d like to keep it as – but I’m not sure how to get them working!!

    Whenever I view the .htaccess file to see what wordpress changed (after changing a setting in Settings>Permalinks) all there is the file is:
    # BEGIN WordPress

    # END WordPress
    not any rewrite rules

    Can anyone help???

Viewing 2 replies - 1 through 2 (of 2 total)
  • Right, well the only way I could get it working was to manually change the .htaccess file in the root wordpress folder to include:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    (I copied this out of the htaccess file at the old hosting)
    I know this is not the way i’m SUPPOSED to do it – I should only need to use the settings in admin, does anyone know why they may not be working?

    Not so urgent now though seeing as I the links are working with that manual amend….

    Hullo again 🙂
    Another update:
    The next time I saved changes to a page on the website it removed my manual amend from the .htaccess file. When I viewed it it only had
    # BEGIN WordPress

    # END WordPress in it again :(. Even though I have the settings set to /%postname%/ it just seems to remove whatever’s there. V Strange

    Anyway, to keep my manual bodge in place I have removed any write access to the file so that the links work in the mean time

    I’d love to do a proper fix rather than this bodge – so if anyone’s got an idea of why the built in function is mucking this up then I’ll have a play around and see if I can get it working properly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘permalinks problems after upgrade and server move’ is closed to new replies.