You don’t need a separate rule in your .htaccess. Add …
define( 'WP_CONTENT_DIR', 'YOUR_LOCAL_PATH' );
define( 'WP_CONTENT_URL', 'YOUR_PUBLIC_PATH' );
… to your wp-config.php
. Do not write into wp-settings.php
. This file will be overwritten during the next update – never touch a core file.
Related Posts:
- Moving wp-content outside of web root?
- Remove / from www.example.com/ [closed]
- Site broken after using URL Change in Admin
- Special domain for a page
- Rewrite WordPress Standard Feed URL – /feed/ to feed.xml
- Redirect to another page using contact form 7? [closed]
- wordpress.com website url structure [closed]
- Cannot access WordPress website from external IP while internally it is working properly [closed]
- get_template_directory() returns wrong address on VPS
- Localhost access after changing URL
- Change dynamically URL to SEO friendly via .htaccess?
- wp-login.php ampersand in url results in 404
- How to redirect WP post with a specific word in the URL
- Multisite subdirectory blogs missing slash
- How do you retrieve a post by slug name through REST API?
- Why “?v=hash” is added to my URLs? [closed]
- Detecting a WordPress URL without doing a full HTTP GET?
- How does WordPress generate URL slugs?
- How does routing on wordpress work?
- Redirecting to old domain after migration
- Unwanted media library URLs in posts?
- How to remove file versions from the file source links in wp_head?
- Add menu and submenu in admin with a URL instead of slug?
- Move WordPress to subdirectory, keep ALL URLs
- Update media file url in wordpress media library
- Change logo url link
- Dynamic URL generates dynamic content
- Fix 403 error on WordPress multisite network using subdomains
- As soon as I add a custom query_var using the filter, my pages point to an archive page – why?
- htaccess and wordpress config files are regularly over written
- Which of WordPress’s .php files need to be directly accessible via HTTP?
- Remove site root trailing slash
- How to create a page for authors? like www.myblog.com/author/
- Old URL Redirect website after migration
- Multisite on localhost using xampp
- pass user id in slug and get user information
- Best way to give site sub-page it’s own domain?
- Dynamically change page title from URL param
- What is the correct way to convert the absolute path of the executing script to a URL, in WordPress?
- Getting 404 Hits on URI -/-/-/-/-/-/-/-/-/- . How to deal
- How to change logo url [closed]
- React Router with WordPress
- Make homepage a non-WordPress page
- Avoid the removal of “https:” from URLs
- Content duplication issue with dynamic URLs
- Is get_permalink also the canonical URL?
- Remove trailing slash from previous_posts_link()
- MULTISITE SUB-DOMAIN JUST SHOWS INDEX OF -> CGI-BIN INSTEAD OF SHOWING SITE
- Block direct url enter
- How do you make homepage redirect to it’s slashed version?
- How to remove my website link when adding a link?
- Can i have access to my WordPress Website again?
- Site transferred to new server produces 404s
- How can I make my blog urls have words of the title in them?
- Change URLs depending on alias
- Passing values through url for checkbox fields with same name to get?
- How do I avoid messing up URLs when switching from example.com/subdir to example.com?
- Made WordPress URL and site address URL the same
- How can i get rid of wp in front of URL
- How to customize sub-URLs in a wordpress website (.htaccess)
- Alternatives to site_url() and get_template_directory_uri()
- Adding more onto an esc_url [closed]
- Unicode characters are saved in a funny way in the DB
- Replace category name with article id in wordpress urls
- How can I insert a dynamic URL in my email template?
- Redirect Old wordpress url to new wordpress url
- Block registration by URL referrer?
- WordPress Primary Category Changes After Import, Permalink Issue
- How to set wordpress url on local host to access it via VPN
- unique url access control
- reWrite wp-content url to point on my cdn
- I found weird email address appended to some of my URLs, what does that mean?
- How to get custom URL routes property_id in wp php plugin?
- index.php shows up in url
- how to remove this #.XsZOUWhKjIU from my wordpress url
- Rewrite rule not working, but only when parameter is text
- How to allow URL with filename & extension in wordpress?
- Incorrect page shown
- Cannot Save Changes After Updating URL Settings
- Avoiding the -2 in slugs
- How to encode correclty an url with the char “&” for an email?
- How do i create navigation links like this in wordpress? [closed]
- Blog post Links leading to home page [closed]
- URL Structure for translated articles
- Let WordPress to go opening an external URL
- Change default query parameters
- Steps for WordPress over SSL
- Accessible Subcategory URL’s pages without using .php hack
- How do I make images open in a new tab by default?
- problem getting audio url
- How to eliminate the Web Address / Web Link textbox from comment forms
- URL displays different page (a loop)?
- Change path/url of admin-bar.min.css
- Why is my WordPress install using full server directory paths for media URLs?
- Accidentally Changed WordPress Url
- Typing local WordPress URL works, but clicking the same link does not
- Images in sub-pages fail to load
- Block a specific url request
- Standard Htaccess directives disappear by themselves
- What purpose does /embed/ URL have and how to avoid SEO problems?