hard flush_rewrite_rules() not regenerating .htaccess
Try using this for the the rewrite: global $wp_rewrite; $wp_rewrite->flush_rules( true ); see if that will work.
Try using this for the the rewrite: global $wp_rewrite; $wp_rewrite->flush_rules( true ); see if that will work.
CDN + WP Admin Query – .htaccess redirection
Why can’t I access files / directories outside of wordpress
If you know the exact code that is inserted, then read the htaccess file with a function that contains fread command, and do a search for your inserted text, replacing the found text with an empty string. Then fwrite the text to the htaccess file. If you are just looking for a way to remove … Read more
Passing parameters to WordPress static front page
Since your WordPress site is just a one-page site, this is served from the single URL http://example.com/. You then want http://example.com/<something> to be internally rewritten to http://example.com/app/<something>. You can add the following mod_rewrite directives before your existing WordPress directives (ie. WordPress front-controller) in your root .htaccess file: # Route all URL-paths (of 1 or more … Read more
Your code redirects the WordPress admin pages to use https (which will work fine), and then sets the site and WordPress addresses (which may auto redirect some pages). Note that FORCE_SSL_LOGIN was deprecated in WordPress version 4.0 (https://codex.wordpress.org/Administration_Over_SSL) You can force the whole site to use SSL using .htaccess (note to cover WordPress installs to … Read more
RewriteCond %{HTTP_HOST} ^site.olddomain.com/wp-content/uploads/sites/2$ The HTTP_HOST server variable contains just the hostname (the value of the Host HTTP request header). It does not contain the URL-path, so the above condition is never going to match. But the site_id in new domain is 2. But your directive appears to be trying to do the opposite… checking for … Read more
Alias ‘wp-content’ directory to something shorter (framework?)
Please make sure your permalinks are set up as /%postname%/(Post name). You can do this in the Admin by navigating to Settings > Permalinks.