- This topic is empty.
February 11, 2014 at 4:39 pm #162638
I did search google and the forums but couldn’t come across others with the same question.
I installed wordpress in a subdirectory by following the directions in the Digging into WordPress book. The idea is that you install wordpress in a subdirectory with a really weird name for security purposes.
I changed the index.php file to be:
and changed the settings in the general settinngs of wordpress so that my wordpress url is: http://mydomain.com/somethingweird and my blog url is http://mydomain.com. It all has been working ok until I noticed that all the images from the media folder have a url pointing to http://mydomain.com/somethingweird/wp-content/uploads….
I’m confused because I thought the weird folder name was for security purposes but all the images on my site are showing the weird folder name in the url. Is there a way to fix this or am I missing something very obvious? I just want to make sure my site is secure. I’m not an expert in wordpress, just learning as I go. Any help would be appreciated.
Thank you.February 11, 2014 at 5:13 pm #162640TheDocMember
This is standard WordPress behaviour. You can change the location if you want: http://www.wpbeginner.com/wp-tutorials/how-to-change-the-default-media-upload-location-in-wordpress-3-5/February 11, 2014 at 5:18 pm #162641AlenParticipant
Creating a sub-folder in public_html folder of your server doesn’t really offer any security. It might trip up a hacker little bit, but not too hard to figure out where the actual files are located. If you’re up for it, you can move the uploads folder, so that it obscures the location little bit more.
But first read some of what WordPress Codex recommends for security:
http://codex.wordpress.org/Hardening_WordPressFebruary 11, 2014 at 5:19 pm #162642
Thanks. Is it a big deal security-wise? If it’s not I’ll leave it and install some plugins that Chris suggests in the book. I’m assuming I’ll have to change the urls in all the previous images that are posted already too. Is there a quick way to change the old urls or just a bunch of tedious work?February 11, 2014 at 5:21 pm #162643
I’ll be going over this link today. Thanks Alen.
- The forum ‘Back End’ is closed to new topics and replies.