.htaccess file missing from fresh WordPress install?
-
I am troubleshooting an issue I have with one of my staging websites where redirects aren't working the way I wanted. Anyways long story short, I setup a brand new instance to try and compare some defaults, but I noticed there's no .htaccess file in a fresh WordPress Developer app deployment. Is this intentional? Shouldn't there be a .htaccess file in the /app/data/public/ directory?

-
I think the WP distribution does not have .htaccess files at all and it's only generated when you setup permalinks. I thought maybe atleast wp-content might have .htaccess inside it but even that doesn't. I guess it's up to the user to set those up, if they want to.
I guess the main danger is if your site somehow allows someone to upload php files, then it might get executed under wp-content. But this of course requires one to install such a plugin that let's someone upload random files.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login