The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress subdirectory showing up in media urls

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #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: and my blog url is It all has been working ok until I noticed that all the images from the media folder have a url pointing to….

    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.


    This is standard WordPress behaviour. You can change the location if you want:


    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:


    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?


    I’ll be going over this link today. Thanks Alen.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Back End’ is closed to new topics and replies.