Forums

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
    Posts
  • #162638
    Miela84
    Participant

    Hi,
    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:
    (‘./somethingweird/wp-blog-header.php’);
    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.

    #162640
    TheDoc
    Member

    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/

    #162641
    Alen
    Participant

    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_WordPress

    #162642
    Miela84
    Participant

    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?

    #162643
    Miela84
    Participant

    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.