Support » Fixing WordPress » Migrating from Joomla and fixing permalinks

  • Hi everyone, I have just transformed my old joomla website into WP with the help of “FG Joomla to WordPress” plugin.

    The main issue is that all permalinks are “ugly” due to wrong settings (categories, post-id, etc…) and “/index.php/” is there.

    I have read all the topics and guides about index.php removal and permalinks but before acting I would like to ask you guys about the risks of messing up all the google indexing.

    Basically I would like to remove the index.php and fix all the permalinks setting up the proper categories that weren’t set during the years we’ve been using Joomla.

    This means that pretty much every URL will go 404.

    Is it a proper solution if I set 301’s for all of my old articles or do I better leave them as they are and just work my WP with “pretty” permalinks only on the newly published articles?

    In case 301’s are suggested, would you do the whole job manually thru .htaccess or is it a better idea if I manage with the help of a specific plugin?

    Thank you very much for your help!

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • How many links are we talking about?
    You can use this to put a 301 on your URLs:
    https://en-ca.wordpress.org/plugins/redirection/
    and eventually the Google index will catch up.

    Once you have saved your permalinks, you could use this to replace your /index.php/ from the URL:
    https://en-ca.wordpress.org/plugins/better-search-replace/
    or, better – this:
    https://interconnectit.com/search-and-replace-for-wordpress-databases/

    Back up first.

    Thread Starter MarcoPau

    (@marcopau)

    Hi Corrina, we’re talking about 100 links or so. I thought I could do them by hand, since the migration from Joomla to WP hasn’t really worked perfectly (the permalink structure isn’t often correct).

    Thanks a lot for your suggestions, I will read those pages thoroughly.

    Actually just to make sure we’re on the same page:

    1) 301 all the broken links from …/index.php/wrong-sub-category/wrong-category/post-id-post-name to …/index.php/correct-category/post-name (or directly…/correct-category/post-name?)
    2) use interconnectit.com script to go thru all the database in order to remove all index.php’s?

    One more question: once I have the pretty permalink like I want (which is going to be …/category/post-name like I said before), what happens if I change the category to an article? Say I’ve done all the work and notice I need to change an article’s category… The permalink will change as soon as I change the category, thus I will need to add the 301 from …/old-category/article-name to …/new-category/article-name – correct?

    Thanks again!

    For 100 pages, if it were me I would have exported just the structure using this:
    https://en-ca.wordpress.org/plugins/export-all-urls/
    so that you have the titles and the right urls.
    Then I would have copy and pasted the content, then used the replace script.
    I know we always hate to hear the word ‘manual’ in a migration, but 100 links is just not enough content imo. It would have been pretty quick.

    When you save your permalinks properly, and you change / update a category, the new link gets saved as well.

    ie.
    domain.com/houses/how-to-build-a-house
    If you change the ‘houses’ Category to ‘Semi Detached’ the URL will automatically change to :
    domain.com/semi-detatched/how-to-build-a-house

    You also have the opportunity under Edit Post to change the URL, ie.
    domain.com/houses/how-to-build-a-house
    to
    domain.com/semi-detatched/how-to-build-a-semi-detatched-house

    Thread Starter MarcoPau

    (@marcopau)

    Yeah I know it gets changed automatically but what about SEO? Do I need to set 301’s from the new pretty permalink/adjusted category permalink to the old weird Joomla permalink?

    I don’t think I can manage redoing everythink since the job has already been done by another person who helped me, thus I feel myself more confident in fixing from within WP…

    What about the two steps I wrote in my previous message? Is that a proper setup?

    Thanks a lot for your support!

    1) 301 all the broken links from …/index.php/wrong-sub-category/wrong-category/post-id-post-name to …/index.php/correct-category/post-name (or directly…/correct-category/post-name?)

    No.
    Search:
    /index.php/wrong-sub-category/wrong-category/post-id-post-name
    Replace:
    /correct-category/post-name

    2) use interconnectit.com script to go thru all the database in order to remove all index.php’s?

    That’s a bit more risky imo.
    If you choose this route, be sure to include the slashes:
    Search:
    /index.php/
    Replace with <empty>

    Do I need to set 301’s from the new pretty permalink/adjusted category permalink to the old weird Joomla permalink?

    No.
    The opposite.
    A 301 goes from the old URL to the new URL.
    You can also preg_match on entire Categories, it doesn’t need to be at the individual URL level.

    Thread Starter MarcoPau

    (@marcopau)

    Hi Corrina, I am starting the fix.

    Exported all the urls with the plugin you suggested. Is it possible to export the urls out of my old joomla (it is still visible with web.archive.org and I have a backup) so that I am sure to have the old thing under control? Or maybe easier/better to concentrate on the results given by google searching site:domain.com?

    I have a list of pages/articles that receive backlinks and it’s just a dozen of those.

    One more major thing: once my website is all set and working, if I happen to change an article’s title or category, do I need to set up a new 301 for that change?

    Thanks again for your amazing support!

    Thread Starter MarcoPau

    (@marcopau)

    Actually I omitted the number one question: can I just manually go and publish all the articles directly without the index.php within the articles, and for each of them, 301 from the old index.php/ugly-permalink to the new clean one?

    Like you said, being just a hundred (maybe a couple of hundred) of articles, I can just go throu all of the articles by hand and doing that I can directly fix a few more things in those, i.e. titles/slugs, fit the missing H2 and fix the picture (name, alt-text, ecc).

    It could be a matter of a minute or two each article… 🙂

    corrinarusso

    (@corrinarusso)

    can I just manually go and publish all the articles directly without the index.php within the articles, and for each of them, 301 from the old index.php/ugly-permalink to the new clean one?

    Yes.

    site:domain.com works fine imo.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.