• Resolved korosec1

    (@korosec1)


    I’m novice in this field, somebody PLEASE help me. I was adding few links on my index.php page and everything works fine there, but I’m not able to login to my admin panel on WP. I get a message: forbidden access
    https://www.tinaandviktor.com/wp/wp-admin/
    I can edit a post, but can’t go in through my login page???
    Please somebody tell me what is happening?
    Thanks
    Kristina

Viewing 5 replies - 1 through 5 (of 5 total)
  • What index.php file did you edit?

    I got to your login at:
    https://www.tinaandviktor.com/wp/wp-login.php

    Just a reminder that you can add links in Administration > Links > Add Link.

    ********************
    Welcome to the WordPress Support Forums!

    Please help keep the Forums successful by reading:
    Using the Support Forums

    Also, remember the WordPress Codex and the FAQ pages.

    And, thank you, for letting us know if this information proves useful (or not)!
    ********************

    Thread Starter korosec1

    (@korosec1)

    Thanks, I edited index.php from the root directory in FTP. I did save an original, but I must have saved over it, so I lost it. I just tried to login from Firefox (Iused IE before) and I was able to get to the login page, but when I tried to login I got the same forbidden access message.

    Thanks:))

    Do not touch the index.php in the root (the “sweet and short” one)!
    If you over-wrote it, download a new copy. You can edit only the theme’s index.

    Here’s the standard index.php delivered with WordPress.
    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    Based on what I’m seeing you have WordPress installed in /wp subfolder so your index.php in your root folder would be like:
    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp/wp-blog-header.php');
    ?>

    Thread Starter korosec1

    (@korosec1)

    Thanks for the help, I got it fixed (a friend of mine actually)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Forbidden login access after editing index.php’ is closed to new replies.