• I had a wordpress installation in a subdirectory of my server while I set everything up. While it was in the subdirectory I was able to change my permalink structure and use “pretty” permalinks. When I was all done I followed the instructions on the codex, moving the installation to the root directory and updating the permalink structure. When I went to the site, however, none of my permalinks (posts or pages) worked.

    I am extremely confused, because permalinks worked on the same server in a different folder not more than an hour ago. Clearly, mod rewrite and allow override must be turned on on my server.

    Here is my htaccess file:

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter silverl

    (@silverl)

    I should also mention that when I update permalink structure it says “Permalink structure changed successfully” (or whatever the success message is) even when there is no htaccess file on the server or it is not writable.

    Thread Starter silverl

    (@silverl)

    No advice?

    After a move it is always advisable to get a new .htaccess file and re-set the permalinks structure. Did you try that?

    Thread Starter silverl

    (@silverl)

    Aye, I did

    Clearly, mod rewrite and allow override must be turned on on my server.

    AllowOverride is by directory though, isn’t it?

    Thread Starter silverl

    (@silverl)

    Is it? I don’t know much about these things. Could it be turned on for a subdirectory (i.e. domain.com/test/) and not the main site? (i.e. domain.com/)

    If so, how do I change this?

    Well, it’d be a question for your host or, if you ARE the host, you’d find it in your apache conf file.

    And yes, upon reflection, I’m pretty sure it can indeed be on or off by <Directory>.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Permalinks broken after moving and updating structure’ is closed to new replies.