Support » Fixing WordPress » Broken links

  • Have a problem that beats me. Hopefully someone have an answer.
    I am migrating a wordpress web site from old server to a new installed apache2 server. Both are my own servers. Running http at the moment.
    Everything works well except one thing. The links does not work, like in about, contact etc in the main menu.
    The links in Settings “General” and “Permalink” are set to my public path, as it should be, and so are the database links.
    Looks like the apache server configuration do not resolve internal links the same way my old server does?? I have set up the virtual redirect and the path is var/www/html/mywebsite
    I am clueless, please help out

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

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter zappoboy

    (@zappoboy)

    I want to add some information that probably is vital:
    If I connect from my internal IP on the server the links work, but not the front page.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    When I go to your site, everything seems to work. Did you fix it since posting this message?

    Thread Starter zappoboy

    (@zappoboy)

    No, that is the live site from my old server. Can not have the broken site live.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    OK, then

    1. Make sure you support .htaccess

    In your virtual host config for the site, add these three lines

    <Directory /path/to/wordpress/docroot>
       AllowOverride All>
    </Directory>

    then restart httpd

    2. Check your internal links to make sure they match the domain.

    Use the plugin “better search replace” to search for http://wrongdomain and replace with http://rightdomain.

    Thread Starter zappoboy

    (@zappoboy)

    Thanks for the advice. I will try that.

    Thread Starter zappoboy

    (@zappoboy)

    Hi Steve Stern
    Could you please explain what /docroot is?
    As for your: “<Directory /path/to/wordpress/docroot>”
    I did put in /var/www/html/wordpress/ where the wordpress installation is done but I do not get the “docroot” directive

    Thanks

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    where the wordpress installation is done

    Exactly.

    Thread Starter zappoboy

    (@zappoboy)

    OK

    Thread Starter zappoboy

    (@zappoboy)

    I tried to follow your directions.
    The paths are exactly the same as in my old server.
    At my host service provider I have a DNS pointing to my fixed IP and also a redirect to my new servers host name, which is “thailand4”. All this works fine with both servers.
    All the links should be the same since the path is exactly the same but I checked it anyway.
    This is what I have checked.
    In database wp-options and wp-qss the links are correct
    The links in virtual thailand4.conf are correct. Thailand4.config is activated, apache restarted.
    I added the three lines:
    <Directory /var/www/html/wordpress/>
    AllowOverride All
    </Directory>

    Permalinks checked, OK and I saved it one extra time.
    I can not use the plugin since I never used any other domain path, have nothing to search for.
    The problem persists.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please post a link to the “broken” site.

    Thread Starter zappoboy

    (@zappoboy)

    OK but then I must cut the live site server, they both have same fixed IP. Can do that for a short time.
    http://thailand4.net
    How about 20 minutes? Let me know if you need more.
    Start NOW

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The menu links work for me.

    Thread Starter zappoboy

    (@zappoboy)

    REALLY. Try again. I see NO reason why it should not work for me, or do you have one?

    Thread Starter zappoboy

    (@zappoboy)

    I tried my mobile too. Do not work.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I tried in an incognito window so cache would not be an issue. It works for me. What happens if you try from outside your network?

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