• Hi all
    Recently I started up a new Apache server and migrated all web sites from my old NAS Server.
    Everything works fine except one problem I can not find any solution for. I am sure many of you know exactly what is wrong. Please help.
    1. Copied all files to new server
    2. Exported/imported database
    3. Changed the links in “Settings” General (Permalinks OK)
    4. Changed all links inside Theme to correspond to new server
    5. Changed the links in database
    6. No need to change DNS and/or redirect with host name provider, all the same

    Everything works fine except internal links like “Menu” links. I delete a link and reinstall it – does not help, seems that links to other pages than “Home” do not resolve.
    Now I am clueless.

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Please try this plugin https://www.ads-software.com/plugins/better-search-replace/.

    You have to enter your old site URL and new site URL then just dry run and check number of links to be changed/updated. Then un-check the dry run and run the process again, it will replace all your URLs with the new one.

    Hopefully, it will fix your issue.

    Thanks

    Thread Starter zappoboy

    (@zappoboy)

    Thank you, I will try it of course.

    Thread Starter zappoboy

    (@zappoboy)

    This seem to be a useful tool. Sorry to say it did not help my issue. I still get
    The requested URL /about/ was not found on this server.
    “about” is a link to a page in the head menu”

    Thread Starter zappoboy

    (@zappoboy)

    Forgot to mention that the plugin found 1 instance in the database. I changed it and verified. It was gone then.

    About page is there on your site? Please check in pages once and what’s the permalink it is having?

    Thread Starter zappoboy

    (@zappoboy)

    The pages are there, all right.
    In the top menu I have About – Contact – Home – Promotions
    All pages have a correct link, like thailand4.net/about/
    One clue might be that the Home page thailand4.net WORKS
    Another clue might be that if I do a search “about” (as in the link thailand4.net/about I can see the page about in the search result.
    I imported the database again and checked the links first. I have come to the conclusion that the problem is NOT in the database since all links are the same in my new server.
    Default links in “Settings General” and “Permalinks” are all correct, and Yes I did re-save the Permalink page.
    Total mystery to me.

    Moderator bcworkz

    (@bcworkz)

    It sounds like you don’t have the correct entry for WP in your .htaccess file. Assuming this is not a multisite installation and WP is installed in public root, the .htaccess file in the same folder should contain:

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

    (@zappoboy)

    Thanks for the tip but the .htaccess is correct
    Still a mystery

    Thread Starter zappoboy

    (@zappoboy)

    I was thinking may be it is a permission issu so I tried:
    sudo chmod 755 -R /var/www/html
    Did not help. Still clueless

    • This reply was modified 6 years, 6 months ago by zappoboy.

    Pages are accessible. Please see: https://screencast-o-matic.com/watch/cFjb2CqDIu

    I guess you have some browser cache there that’s why you are not able to access the page.

    Thanks

    Thread Starter zappoboy

    (@zappoboy)

    I am well aware of the cache problem so always empty it before I test.
    I realize one thing. My old database have a WordPress . I copied it to new server.
    May be I must INSTALL a new WordPress in to the new server? Will try that tomorrow

    Moderator bcworkz

    (@bcworkz)

    Only if there is no WordPress there to begin with. It wouldn’t hurt to re-upload fresh files anyway, maybe the existing ones were corrupted somehow.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Broken links’ is closed to new replies.