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
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
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.
I don't want the wp-content folders able to be browsed.
Is there a simple code I can add to the .htaccess file ?
thanks got it
# disable directory browsing
Options All -Indexes
This topic has been closed to new replies.