• 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.

Viewing 15 replies - 1 through 15 (of 17 total)
  • How did you do the move?
    Did you follow this guide?

    Thread Starter raakvlak

    (@raakvlak)

    @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.”

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

    Thread Starter raakvlak

    (@raakvlak)

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

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

    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

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

    Thread Starter raakvlak

    (@raakvlak)

    @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.

    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.

    Thread Starter raakvlak

    (@raakvlak)

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

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

    Thread Starter raakvlak

    (@raakvlak)

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

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

    Thread Starter raakvlak

    (@raakvlak)

    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

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Problems with links after moving to a new server’ is closed to new replies.