[resolved] site will not load without trailing slash (7 posts)

  1. mtibbits
    Posted 3 years ago #

    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?

  2. Krishna
    Volunteer Moderator
    Posted 3 years ago #

    Please post your site URL

  3. mtibbits
    Posted 3 years ago #


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

  4. Krishna
    Volunteer Moderator
    Posted 3 years ago #

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

  5. mtibbits
    Posted 3 years ago #

    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.



  6. mtibbits
    Posted 3 years ago #

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

    functions here...
    more functions..

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

  7. Kat
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.