• Hi there,

    I copied my wordpress site to another server and got it running. The problem I am facing is when I click the main logo of the site I get:

    “Forbidden
    You don’t have permission to access /site on this server.”

    Now.. this problem does not happen if I trail slash the address.
    Imagine this:

    http://localhost/site/ – Works great
    http://localhost/site – (without the slash/)I get the above error “Forbidden”

    What can be causing this?
    Any piece of advice is welcome.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    Thread Starter firefrank

    (@firefrank)

    I can solve it by adding “. ‘/'” after “home_url()” to the theme as follows:

    <a class="fade" href="<?php echo esc_url( home_url() . ‘/’); ?>" title="Home" >

    But it’s not the solution I am looking for as home_url() should do the trick and this is working in another server without this modification. I dont know why.

    You should be using something like:

    <a class="fade" href="<?php echo esc_url( home_url('/'); ?>" title="Home" >

    Thread Starter firefrank

    (@firefrank)

    Thank you. I guess this solves it. Dont know why it works on the other server without this modification.

    Something related to apache and trailing slash?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘logo link problem’ is closed to new replies.