• Hungrynow

    (@hungrynow)


    I want to change my permalinks structure from /%category%/%postname%.html to /sample-post/. After making this change in my site’s settings, I added this line to my .htaccess:

    RedirectMatch 301 ^/([^/]+)/([^/]+).html$ http://www.mydomain.com/$2

    The redirect appears to have been successful since all links of the old format are correctly redirecting to their corresponding content, which now displays the new format permalinks.

    However, the dashboard link on the top toolbar now gives me a 404 error on a page with url /index.

    Why has this happened and how can I fix it? Thank you!

    Edit: Sorry, here’s the site in question: http://www.parsleymonster.com/ It’s a brand new clean install because I’m making sure I get the procedure right before implementing it on a huge established site.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Rajesh Soni

    (@rajeshsoni)

    Warning: require(/home/nova/public_html/parsleymonster.com/wp-includes/load.php): failed to open stream: No such file or directory in /home/nova/public_html/parsleymonster.com/wp-settings.php on line 21
    
    Fatal error: require(): Failed opening required '/home/nova/public_html/parsleymonster.com/wp-includes/load.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nova/public_html/parsleymonster.com/wp-settings.php on line 21
    Thread Starter Hungrynow

    (@hungrynow)

    Thanks for taking a look! Sorry, I was just coming back here to update. I reversed all my changes and still couldn’t access the dashboard, changed the permalinks to default and still couldn’t access the dashboard. So I have deleted my entire test site and am presently in the process of uploading a clean set of files to install afresh. I will let you know whether I run into the same issue. Thanks again πŸ™‚

    Rajesh Soni

    (@rajeshsoni)

    You could’ve just commented / removed the line that you added to .htaccess

    Thread Starter Hungrynow

    (@hungrynow)

    I did. It didn’t bring back my dashboard :\

    dwc_user

    (@dwc_user)

    What if you make a back-up of your .htaccess and delete it.
    After change the permalinks again so WordPress will create a new .htaccess.

    Thread Starter Hungrynow

    (@hungrynow)

    I did that too, several times. Interestingly, after deleting all my files and dropping all my database tables, I’ve done a completely fresh install with a fresh set of 4.2.2 files from wp.org, and after completing the installation – I still couldn’t access my dashboard!!

    I had used www in my site url settings during set-up, I just went in and changed them to remove the www and my dashboard is accessible again just as it should be! I’ve changed back to www again and the dashboard link is still working.

    So, now I’ve confirmed all is good before I start I’m going to try the permalink change and redirect again and see what happens. Fingers crossed…

    Thread Starter Hungrynow

    (@hungrynow)

    I’m pulling my hair out now!!

    I changed the permalink structure and immediately my dashboard link stopped working again. I cleared my browser cache and it worked. I tried it in a new browser and it worked.

    Then I added the redirect line to my .htaccess:

    `RedirectMatch 301 ^/([^/]+)/([^/]+).html$ http://www.parsleymonster.com/$2′

    and my dashboard link stopped working again. No amount of clearing my browser cache is helping and in another new browser I can’t even sign in because “Oops! That page can’t be found”!!

    I’m all out of ideas now. I had managed to get it running fine before I added the redirect. The redirect is effectively doing its job of redirecting old links to new links, but the only way to get into my admin panel is via the “+ New” button since the dashboard link itself just throws the “oops” error. So what am I doing wrong???

    Rajesh Soni

    (@rajeshsoni)

    Try this…

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RedirectMatch 301 ^/([^/]+)/([^/]+).html$ http://www.parsleymonster.com/$2
    Thread Starter Hungrynow

    (@hungrynow)

    Thank you, where? Inserting the redirect line in at that position didn’t change anything and replacing my existing .htaccess content broke the post links.

    In case it helps I have created a test admin account, testadmin/parsley

    Rajesh Soni

    (@rajeshsoni)

    /wp-admin works just fine! Have you tried clearing the browser cache and cookies?

    Thread Starter Hungrynow

    (@hungrynow)

    Yes, I’ve even used a completely new browser… ok, I’ve managed to get in by typing /wp-admin/index.php rather than just /wp-admin as I usually do. Now I can see my dashboard. BUT from the front posts page, using the dashboard icon or its Dashboard sub-item to toggle back to the dashboard still gives me the 404. Please can you try the toggling and see what happens for you??

    Thread Starter Hungrynow

    (@hungrynow)

    I still have the same problem. To clarify the issue I am having, yes, I can sign in on http://parsleymonster.com/wp-admin/index.php (even though I signed in on http://parsleymonster.com/wp-admin before) and it takes me stright to the dashboard. But if I go to “view site” or any of the front pages, I cannot get back to the dashboard the usual way since the dashboard link gives the “oops, page not found” error. This is not a cache issue, I get the same result on all my devices and anyone who signs in with the test admin account I posted above will encounter the same problem.

    I need to implement the change of permalinks structure and permanent redirect on a very large, very busy site, but I won’t even attempt it until I have resolved this issue on my test site.

    Thank you for any help!

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

The topic ‘Changed permalink structure, now dashboard links don't work’ is closed to new replies.