Documentation

Rewrite – WP Content

Posted in: Getting Started (4) Plugin Options Explained (35) Actions / Filters (30) How To (14)      Options (28)    Rewrite (18)    Directory (3)  

As default a WordPress installation use a wp-content directory which store themes, plugins, media files, cache data etc. This option allow a way to change this slug to something else on front side html.

New Content Path

A theme file loaded from default wp-content folder appear like this:

<script type='text/javascript' src='https://-domain-name-/wp-content/themes/theme-name/assets/js/jquery.js'></script>

After filling in this option e.g. general-data the links will change to this:

<script type='text/javascript' src='https://-domain-name-/general-data/theme-name/assets/js/jquery.js'></script>

If a theme slug was also specified for the theme (see Rewrite – Theme) the urls will use just the new slug.

Block wp-content URL

After changing the default wp-content to something else, the old urls are still accessible. This provide a way to deny all old urls by returning default theme 404 error page.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Scroll to top