Forums

Problems with links after moving to a new server (18 posts)

  1. raakvlak
    Member
    Posted 1 year ago #

    I was asked to move a fully functioning wordpress-based site to a new server.

    I've moved the files and the database, set everything up, and it all seemed to work. When I load the homepage of the site on the new location, the page loads as it should. Opening one of the internal pages, however, generates a broken link error.
    The same goes for wp-admin: I get to the login screen, from there on I get broken link errors no matter what I try.

    I can get the site to work by switching off Pretty Permalinks.
    Using default "Ugly Permalinks", everything works fine.

    .htaccess currently contains the following lines:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Which, if I'm not mistaken, is the default wordpress .htaccess rules for Pretty Permalinks.

    The server runs a plain vanilla Debian install. The site has been installed in a subfolder of /var/www

    According to the sys-admin, mod_rewrite is enabled.
    Since the site runs with Uggly Permalinks, I think we can rule out any problems with PHP or the database.

  2. NicoJulius
    Member
    Posted 1 year ago #

    How did you do the move?
    Did you follow this guide?

  3. raakvlak
    Member
    Posted 1 year ago #

    @NicoJulius: Until now, the site was hosted under its own domain, using shared hosting at GoDaddy.

    There have been no changes to the URL, or the database. Neither has wordpress been moved inside the domain. So, from the guide you point to, the move should as simple as the first option: "If database and URL remains the same, you can move by just copying your files and database."

  4. govpatel
    Member
    Posted 1 year ago #

    Try and resetting your permalinks switch to default and see if the links work if they do then switch back to custom structure.

  5. raakvlak
    Member
    Posted 1 year ago #

    @govpatel: I tried that. Several times. With no luck.
    They work under the default Ugly Permalink structure, but not under any other variation.

  6. govpatel
    Member
    Posted 1 year ago #

    Are you on a window server or linux sever if on linux server rename .htaccess file and see if that solves your problem.

  7. NicoJulius
    Member
    Posted 1 year ago #

    It looks like your .htaccess file doesn't do the job. I compared it with one of my htaccess files, and everything looks fine.
    I don't have enough knowledge of Debian servers. If you see the .htaccess file in the www folder of your server, then I think you have to look at the configuration options of your server. But again, I don't have enough knowledge of that.

    Greets
    Nico

  8. NicoJulius
    Member
    Posted 1 year ago #

    Can't you contact the server administrators (or hosting company)?

  9. raakvlak
    Member
    Posted 1 year ago #

    @govpatel: On Debian (as per my original post). rename the .htaccess to what and how would that solve my problem?

    @NicoJulius: I did contact the server administrator. Says he doesn't know WordPress and doesn't know what WordPress needs / expects.

  10. govpatel
    Member
    Posted 1 year ago #

    By renaming .htaccess file other then .htaccess like .htaccess-hold there will be fresh .htaccess file created by cpanel and then when reset your permalinks fresh code written in new file.

  11. raakvlak
    Member
    Posted 1 year ago #

    @govpatel: Done that already, doesn't help.

  12. govpatel
    Member
    Posted 1 year ago #

    Last thing to check is ask your host if they have Apacie mod_rewrite ON as that is php program that rewrites the urls.

  13. raakvlak
    Member
    Posted 1 year ago #

    @govpatel: As per my original email: "According to the sys-admin, mod_rewrite is enabled."

  14. govpatel
    Member
    Posted 1 year ago #

    What ever is it has to be a server configuration problem as your default setting work fine.

  15. raakvlak
    Member
    Posted 1 year ago #

    Update: it turns out it was an apache configuration problem.
    The "AllowOverride" setting was set to None.

    At this point, I have all pages loading, with the exception of the dashboard page. I've searched the forum and tried all solutions offered (changing the theme, disabling and re-enabling all plugins) but nothing worked.

    The error I'm getting is this:
    Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error.

    Any suggestions on what might be causing this would be greatly appreciated :)

    Thanks

  16. shrinidhi
    Member
    Posted 1 year ago #

    oww ..renamed .htaccess..thanks for your help govpatel

  17. govpatel
    Member
    Posted 1 year ago #

    You are welcome

  18. raakvlak
    Member
    Posted 7 months ago #

    Another update: we have meanwhile tracked the dashboard not loading problem down to a problem with the newsfeed for a plugin.

    Hacked the plugin so it would no longer try to load the news feed and then disabled showing it from the options.

Topic Closed

This topic has been closed to new replies.

About this Topic