Rename wp-content in WordPress

With WP Masquerade Pro, /wp-content/ disappears from your pages: file URLs are renamed, then verified from your browser before they go live.

Pro feature

Included in WP Masquerade ProFrom €59 excl. tax / year

See Pro pricing

What aliases do

The URLs of your images, stylesheets, and scripts contain /wp-content/, /wp-includes/, /wp-content/plugins/… It’s the most visible sign of a WordPress site, and the easiest way to guess which plugins are installed.

Available in WP Masquerade Pro only. The free version doesn’t rename any file URLs. It does, however, hide the plugin’s own files (readme, translations) from scanners.

The File URLs module in WP Masquerade Pro replaces these paths with aliases of your choice on your public pages. A server-side rewrite rule maps each alias to the real folder. The physical folders are not moved: WordPress, your plugins, and your backups keep working normally.

FolderDefault aliasExample
wp-contentassetspublic-assets
uploads / mediamediagallery
wp-includessystemruntime
Pluginsmodulesextensions
Themesskinspresentation

Verified before going live

This is what sets WP Masquerade apart: nothing changes for your visitors until verification succeeds. Three steps:

  1. Choose the level and names, then save.
  2. Copy the rules shown into your .htaccess (or your Nginx, IIS, or Caddy configuration). The block matches your saved settings exactly.
  3. Verify and activate: your browser downloads a test file through each alias and compares its SHA-256 hash with the original. If everything matches, the new URLs go live. If not, the previous plan stays in place and the cause of each failure is displayed.

Verifying from the browser gets around the anti-bot protections some hosts use, such as TigerProtect at o2switch, which block requests a site makes to itself. See hosting compatibility.

What’s included Pro feature

  • Aliases for wp-content, media, wp-includes, plugins, and themes, with server rules and in-browser verification
  • “Suggest paths for this profile” button
  • Blocking of the old URLs (404)
  • URL rewriting in inline scripts, JSON, and <style> blocks, as well as in the optimized output of LiteSpeed Cache and WP Rocket
  • Verified restore of the previous plan

Levels

OptionEffectVersion
No aliases/wp-content/ URLs stay visible.Default
Rename wp-contentFirst alias. Requires the server rules.Pro feature
Also rename media and wp-includesTwo more aliases. Requires the server rules.Pro feature
Also rename plugins and themesAll five aliases: the most effective against detection.Pro feature
Block the old URLsOld file URLs return a 404. External links to your images stop working.Pro feature
Labels shown in the interface: “Test first” for the aliases, “May break links” for blocking.
WP Masquerade Pro "File URLs" setting: rename wp-content, then media and wp-includes, then plugins and themes, and block the old addresses
The File URLs module in WP Masquerade Pro.

Expired license or deactivated plugin: what happens to the plan?

  • Expired or revoked license: Pro features stop, but a plan that was already verified keeps applying, for safety. Your site never breaks because of the license. To change the plan, you need an active license.
  • Pro plugin deactivated or deleted: the rewriting lives in Pro, so your pages go back to /wp-content/ URLs. Remove the alias server rules first, especially at level 4, which blocks the old URLs. If that blocking is active, the Plugins screen asks for confirmation before deactivation.

Naming rules

  • paths relative to the site, with no leading or trailing slash;
  • lowercase letters, digits, and hyphens, with sub-paths separated by a slash (e.g. sites/default/files);
  • each segment starts with a letter;
  • no names reserved by WordPress, no duplicates, and no folders nested inside one another.

Limitations and precautions

  • Only supported static files are rewritten. URLs inside the CSS and JavaScript files themselves stay unchanged, as do plugin-specific signatures (CSS classes, script names).
  • Plugin and theme folder names still appear under their alias: anonymizing them individually is not supported.
  • Blocking the old URLs doesn’t protect against exploitation of a vulnerable plugin: it doesn’t block all of its PHP files.
  • You need a small image in the Media Library to verify the media alias.
  • Multisite installs, installs with separate URLs, or sites serving their files from an external CDN are not supported without an adapter.
  • Reserve the blocking level for sites whose hard-coded URLs and cache optimizations have been audited. Make the switch on a staging site first.

Start free, upgrade to Pro when you’re ready

The free version already hides WordPress, moves the login page, blocks XML-RPC and counts bots. Pro locks down logins, renames file URLs and monitors your sites for you: known vulnerabilities, core integrity, activity log, email alerts and the update status of all your sites in your member area. From €59 per year excl. tax, far less than the cleanup offers whose prices we checked. Compare the costs.

See Pro pricing

Product tour

From installation to protection, in a few minutes

Real screenshots of the WP Masquerade Pro admin, step by step.

  1. Install the plugin

    Plugins > Add New > Upload Plugin: choose the wp-masquerade-pro.zip file from your account, then click Install Now.

    Screenshot: Install the plugin
  2. Activate it

    Activate WP Masquerade and WP Masquerade Pro, then open the settings with the Settings link.

    Screenshot: Activate it
  3. Follow the checklist

    The Getting started tab shows what is done and what is left to do, one step at a time.

    Screenshot: Follow the checklist
  4. Pick a protection mode

    Essential, Recommended or Maximum: one click ticks the right choices in every tab. You can fine-tune each setting afterwards.

    Screenshot: Pick a protection mode
  5. Choose the software to imitate

    Joomla!, for example: bots then hunt for vulnerabilities your site does not have. The look of your site does not change.

    Screenshot: Choose the software to imitate
  6. Move the login page, safely

    Choose a new login address, then test it: it is enabled only once it has been proven to work, so you cannot lock yourself out.

    Screenshot: Move the login page, safely
  7. Turn on two-step verification

    Scan the QR code with an authenticator app, then enter the 6-digit code it shows. A stolen password is no longer enough.

    Screenshot: Turn on two-step verification
  8. Watch the bots fall into the traps

    Requests for /.env, /administrator/ or /phpmyadmin come from attack bots: they are counted, with the most targeted addresses.

    Screenshot: Watch the bots fall into the traps
  9. Get alerted about vulnerabilities

    Every day, your plugins, themes and WordPress are checked against a public database of known vulnerabilities, with what to do. Alerts can go by e-mail.

    Screenshot: Get alerted about vulnerabilities
  10. Activate your licence

    Your licence key unlocks the Pro features, automatic updates and the signature feed. You can check it or move it to another site at any time.

    Screenshot: Activate your licence

WordPress security, without the noise

One e-mail when something matters: new attacks seen in the wild, plugin updates and practical guides. No spam, unsubscribe in one click.