Forums

[resolved] Forward /wp-content/uploads to main site (5 posts)

  1. Turntable
    Member
    Posted 1 year ago #

    How would I keep the /wp-content/uploads hidden from users and forward it to the main site?

    Basically if someone tries to view those folders I want them forwarded to the website homepage.

    thanks

  2. Jonas Grumby
    Member
    Posted 1 year ago #

    You can block access to the folder with a .htaccess file. You may not want to put a redirect there because it *may* (meaning I don't know) cause problems with image paths not resolving properly. There are plugins for restricting access to files & folders.

  3. Turntable
    Member
    Posted 1 year ago #

    I don't want the wp-content folders able to be browsed.

    Is there a simple code I can add to the .htaccess file ?

  4. 123milliseconds
    Member
    Posted 1 year ago #

  5. Turntable
    Member
    Posted 1 year ago #

    thanks got it

    # disable directory browsing
    Options All -Indexes

Topic Closed

This topic has been closed to new replies.

About this Topic