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

    Joined:
    Aug 14, 2013
    Messages:
    378
    Likes Received:
    197
    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:

    Warning
    : 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

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,143
    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

    Joined:
    Jan 6, 2012
    Messages:
    238
    Likes Received:
    103
    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:

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

    Gary Becks Power Member

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