1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New server causing Wordpress issues?? HELP please

Discussion in 'General Programming Chat' started by pitbully, Jun 5, 2014.

  1. pitbully

    pitbully Regular Member

    Aug 14, 2013
    Likes Received:
    I am a marketer and somewhat of a designer, but when it comes to servers, programming or any of the complicated stuff, I suck. I just got somebody to migrate my Wordpress site from shared hosting to a VPS, all on the same GoDaddy account.

    For some reason, now all of the inner pages/posts have a slash( / ) at the end of the URL, and this is the only way these URLs will load. Without the / these URLs return a warning like this:

    : Cannot modify header information - headers already sent by (output started at /home/wwwshops/public_html/wp-content/themes/****/admin/options-init.php:31) in /home/wwwshops/public_html/wp-includes/pluggable.php on line 896

    Note: I replaced my theme name with the **** in the file path, just to be clear

    This guy is pretty knowledgeable, but had no idea why this was happening after he migrated the site for me. I'm not sure if the server is forcing the trailing slash, or if there's some kind of Wordpress problem on the new server. But either way I'm lost here and this is a big problem. Any guidance you guys can give me here would be greatly appreciated. I can't even log into the back end to figure it out because the login page calls for the dashboard URL without the / so it brings up that warning.
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Jan 27, 2009
    Likes Received:
    First of all, try resetting your permalink structure - many hick ups are solved with that kind of a "reboot".

    Go to Settings -> Permalinks, choose the "default", save, choose the previous one, save, test.

    If that doesn't work, you 'll have to do a redirect trick with .htaccess.
  3. olystyle

    olystyle Regular Member

    Jan 6, 2012
    Likes Received:
    just in case that the reset jazzc advised didn't work out - here's a little snippet you could put in your .htaccess to get rid of the slash:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{THE_REQUEST} \s(.+?)/+[?\s]
    RewriteRule ^(.+?)/$ /$1 [R=301,L]
  4. Gary Becks

    Gary Becks Power Member

    Apr 11, 2010
    Likes Received:
    Home Page:
    Hopefully you got the problems solved. As I side note, I 'd recommend migrating away from godaddy hosting.