WordPress.org

Ready to get started?Download WordPress

Forums

403 Forbidden Error (6 posts)

  1. motasim
    Member
    Posted 3 years ago #

    Hi all,

    I've shifted my WordPress site from one hosting to another. I exported the DB and Import in the new WordPress installation on new hosting. Activated the theme and when I try to run the site, it gives me error"
    "403 Forbidden
    You don't have permission to access / on this server."

    What I'm missing here or have done wrong?

    Thanks.

  2. arkgroup
    Member
    Posted 3 years ago #

    motasim,

    Check permissions for all files and folders. Permissions for files should be 644 and for folders - 755.

  3. motasim
    Member
    Posted 3 years ago #

    Thanks arkgroup for your response.
    What I did, I compared the files on both hosting and I found that index.php file is missing on root and also in the wp-content folder. I copy/pasted these files in the new hosting and it start showing the website. But one thing I'm seeing wrong here, the top navigation is showing submenu links. You can see on the following link.

    Previous link: http://174.121.35.186/~homedesi/
    New link: http://homedesignexpo.net/

    Any idea why this is happening?

  4. arkgroup
    Member
    Posted 3 years ago #

    motasim,

    Try to re-upload all the files, may be there are more missing or corrupt files exist.

  5. motasim
    Member
    Posted 3 years ago #

    Now, I took backup of wp-content (renamed the folder). And uploaded the complete wp-content folder from the previous hosting on the new one but same result. The menu is still showing all the sub links in the main nav.

    This line of code is used to grab the nav:

    <?php wp_nav_menu( array('theme_location'=>'top-menu', 'container' => '', 'menu_class' => 'nav', 'link_before' => '<b>', 'link_after' => '</b>') ); ?>

    suggetions?

  6. motasim
    Member
    Posted 3 years ago #

    Also made a new installation but nothing changed. Any help would be highly appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.