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
- Custom URL structure
- 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?
- Site Redirecting to wp-signup.php
- Moving a WP Multisite to a subdirectory
- How does routing on wordpress work?
- Redirecting to old domain after migration
- Custom plugin route in WordPress
- Why is ?doing_wp_cron being appended to my URLs
- Unwanted media library URLs in posts?
- Symbolic Links on dev box with plugins and stylesheets
- Which one does WordPress prioritize when it comes to php.ini, wp-config and .htaccess?
- How to remove file versions from the file source links in wp_head?
- use query string in URL to display content on the page
- Change default URL path (/blog/) of blog posts
- Difference between esc_url() and esc_url_raw()
- How to deal with WordPress on localhost
- Problem with guids and absolute links
- multisite 404 error for subdirectory
- How to convert the file path to a URL of the same file?
- Add menu and submenu in admin with a URL instead of slug?
- Move WordPress to subdirectory, keep ALL URLs
- How to stop wordpress from changing default .htaccess permissions to 444
- Update media file url in wordpress media library
- Why is WordPress saving full-urls to the database?
- WP-Admin not working properly at WordPress multisite with subdirectories
- Clash of the rewrites
- Get taxonomy slug from url
- Load images with http urls inside https post
- Remove All Query Arg
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- Allow admin login at /admin
- Redirecting WordPress /.htaccess / HSTS / SSL
- Pulling a parameter out of the URL of a WP link without “?” or being sent to a different page
- How to append a URL parameter to all outbound URLs
- WordPress on a subdirectory of Laravel – WordPress pretty permalinks inner page shows laravel
- How to remove /index.php/ from URL’s
- Run WordPress frontend and backend in different domains
- WordPress multisite subdirectory redirect infinite loop issue
- How to set global variable in functions.php
- Force the Website URL to Include “www” and to be Upper Case?
- How to remove “http://” When Echoing URL?
- Change logo url link
- WordPress and $_GET Params
- Can’t login after my site was moved to a new server
- WPML Get url without outputting
- List of default WordPress URLs
- Why WP encodes UNICODE (UTF8) containing urls? Any drawbacks of UNICODE url?
- Adding a hook to ‘parse_request’ so that siteurl/pagename/xyz ignores “xyz”
- How to have numeric URLs in Posts and Pages
- Unable to load static front page on home url
- Remove subfolders from URL
- Force home page to be https?
- Hijacking the URL for filtering
- Why WordPress automatically removes http from the url of my website’s sub domain?
- add_query_arg() One Key with multiple values
- Admin-Ajax.php, SSL, Non-SSL
- Weird: /?name in URL leads to blog
- W3 Total Cache Plugin with WP 3 MultiUser [closed]
- custom htaccess rewrite rule for page
- I am Looking to append URL Parameter to all URLs
- How do I amend the fixed “author” part in the URL?
- How to attach region identifier to a pretty url?
- WordPress Move to SSL How to Update Media Assets to HTTPS?
- Dynamic URL generates dynamic content
- Pages redirected to attachment post
- Generate one time URL
- In Settings>>General I am missing some fields
- Suppress subdirectory from WordPress Multisite primary URL
- Change homepage url
- Fix 403 error on WordPress multisite network using subdomains
- Hide pages from google and visitors
- As soon as I add a custom query_var using the filter, my pages point to an archive page – why?
- Prevent WordPress from automatically correcting URLs
- Is dynamic URL possible in WordPress
- Server (WordPress) redirects files that are not supposed to (using htaccess)
- Adding target and _blank as it’s value to the allowedtags
- How to update media links in WordPress after migration?
- permalink for category pages and posts
- Accessing the Current URL in a Text Widget for a Facebook Share Button?
- Is ‘name’ a reserved word in URL’s?
- get_site_url is not returning anything?
- Check what is at URI (post, archive, etc…)
- Error Message from W3 Total Cache when .htaccess Rules Cannot Be Modified? [closed]