• Hi all,

    The website is greenvaleps.vic.edu.au.

    NOTE: It’s working fine now because I’ve set it back to default link structure.

    The usual link structure is “/%category%/%postname%/”, so my problem refers to when I have that structure in place.

    I’ve followed the usual process for copying everything to a new server. The domain name has NOT changed.

    The homepage is working fine, but when I click on any links I get a 404.

    I’ve tried setting to default and then back to custom. Still get 404’s.

    My .htaccess looks like this:

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

    I found a few suggestions of what to add to it but when I change it and upload, then save permalink settings, any changes I’ve made are stripped. The file is writeable.

    Any suggestions? I’m at my wits end here.

    Thanks in advance!

Viewing 14 replies - 1 through 14 (of 14 total)
  • I notice that you have some how come up with a “mixed” permalink structure.

    All menu links work that are the default type: About Us, Facilities, Parents and Contact. For some reason, the Students and Event menu items are “pretty” permalinks, as per your Category/Post Name setting.

    The only thing that I can think of trying is to go through each menu item link for those 2 and set them to the default type manually and then trying to do the change to the desired permalinks.

    Either that or just delete all the items from the Students and Events menus, update the permalinks to the desired setting, re-add the menu items and then update the permalink settings. This in an attempt to get them all in the same format. This, I believe, is where the problem is arising.

    Thread Starter Gerald

    (@manofunreal)

    Thanks for the response! Very well spotted. I hadn’t picked up on that and I’m not sure how it happened. BUT I’ve fixed it and the same problem still occurs. 🙁

    I’ve left the custom permalinks on now so you can see it fail.

    Any other ideas?

    OK, try setting them to the default, save, try them, and then set to the custom. Heading for bed now but will check again tomorrow 🙂

    Thread Starter Gerald

    (@manofunreal)

    They still worked when set back to default, but still didn’t work when changed back to custom again. Thanks so much for your help! 🙂

    Thread Starter Gerald

    (@manofunreal)

    So does this mean the problem is with my .htaccess? Any ideas why everything I add/change gets stripped from it?

    Try this:

    – set back to default, save and test that they work
    – delete the .htaccess file
    – set to desired format and save
    – this “should” create a new .htaccess file with the correct code

    Thread Starter Gerald

    (@manofunreal)

    Thanks again… I did that. A new .htaccess was created. However, it still doesn’t work. 🙁

    That is really odd. Have you tried setting the permalinks to one of the other standard WP settings, for example, ‘Post name’ to see if they work?

    Thread Starter Gerald

    (@manofunreal)

    By the way, the new .htaccess is actually exactly the same as the old one (except for the date and time).

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Check to important things: that mod_rewrite is enabled for your Apache2 server and that your <Directory> section has AllowOverride All enabled for that section.

    Thread Starter Gerald

    (@manofunreal)

    Thanks Jan! The hosting company are telling me mod_rewrite is enabled.

    I’m not sure how to enable AllowOverride. How do I go about that?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    The easiest way to to ask your host. In the Apache2 config file should be section that looks something like this.

    <Directory>
        AllowOverride All
    <Directory>

    If you don’t have that line in the directory section then then mod_rewrite rules won’t work.

    I am having the same issue with a site that was just transferred to my server. http://www.planbexpo.com

    I have already
    verified the mod_rewrite allows override
    deleted the .htaccess files,
    saved permalinks as default,
    deleted the .htaccess file again,
    re-saved as a custom permalinks,

    Still the custom permalinks do not work.

    I changed to use “post name” as the permalink structure and oddly enough the Custom links are working.

    go figure! I am on WP version 3.6.1
    I am uncertain at this point what the root cause is or if it solely related to the latest WP Version.

    Thread Starter Gerald

    (@manofunreal)

    Hi everyone,

    AllowOverride is definitely enabled. The problem is still occurring. 🙁

    If anyone can solve this for me I’ll be forever in your debt!

    Anyone? :/

    Thanks
    Neil

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Moved server – permalinks broken’ is closed to new replies.