Support » Fixing WordPress » site will not load without trailing slash

  • Resolved mtibbits

    (@mtibbits)


    Ok, so stupid me, I was messing around with some stuff this morning as I considered moving WP into a different directory. In the end, I decided to leave it where it is because everything WAS working perfectly.

    However, along the way I moved the index.php and .htaccess files from the site root. I moved them back, but something must have gotten changed along the way because now the site will not load without the trailing slash.

    Ex. artsnb.ca/site/en WILL NOT load
    Ex. artsnb.ca/site/en/ WILL load without any problems

    I can figure a way to work around this, but I’d rather have it working like it was before today. Can anybody point me in the right direction on this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Krishna

    (@1nexus)

    Member

    Please post your site URL

    mtibbits

    (@mtibbits)

    http://artsnb.ca

    I created a work around so you won’t see the problem in action. Couldn’t leave it broken on a live site.

    Krishna

    (@1nexus)

    Member

    Did you try to set the URLs from your dashboard? I think you can do it there (Settings General)

    I’ve finally figured out that the problem is caused by my theme. Here is some more info:

    – I am using WP v3.4.1
    – I have disabled all plugins
    – When I am using the TwentyEleven default theme, everything works fine.

    When I activate my own theme I have the following problems:
    – re-activating any other theme gives me a “blank page” or the white screen of death (WSOD).
    – having my custom theme active also gives me a WSOD when I try to logout of the Dashboard.
    – having my custom theme active will not load the site if I do NOT put a trailing slash at the end of the URL.

    Site URL currently is: artsnb.ca/site/en

    If anybody could help it would be much appreciated. I’m lost as to what could be causing this.

    Thanks,

    Matt

    For anybody else with this issue, the problem was a space in my functions.php file. Ex.

    <?php
    functions here...
    ?>
    
    <?php
    more functions..
    ?>

    The space in the middle between the first closing php tag and the second opening php tag was causing all the problems.

    I’m having the same issue, but I can’t see the spacing issue you reference in your last code snippet.

    I’ve checked all I can, having edited nothing save the custom_functions.php page (I’m on Thesis), and the same issue persists…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘site will not load without trailing slash’ is closed to new replies.