[resolved] Renaming "wp-content" directory? (2 posts)

  1. zompus
    Posted 7 years ago #

    Is it possible to rename this directory, for security reasons?

  2. zompus
    Posted 7 years ago #

    Well I couldn't be arsed hacking up the code to rename the directory, so I used mod-rewrite to change the files I wanted.

    This will get you started, place the code in your root htaccess files.

    # Rewrites the stylesheet to root
    RewriteRule ^style.css$ /wp-content/themes/[INSERT.YOUR.THEME.NAME.HERE]/style.css [L]

    Now visit http://yoursite.com/style.css —it'll be the same as /wp-content/themes/[INSERT.YOUR.THEME.NAME.HERE]/style.css xD

    Use as you will.

Topic Closed

This topic has been closed to new replies.

About this Topic