WordPress .htaccess – route other URLs to another app

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

some url does not redirect from http to https

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

WordPress multisite htaccess redirection to new domain

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

Redirect from different port to subdomain – htaccess

RewriteCond %{HTTP_HOST} ^(www\.)?example\.com:8082/wordpress\ The HTTP_HOST server variable contains the value of the Host HTTP request header – this does not include the URL-path (ie. /wordpress/). But why have you also include a backslash (\) at the end, instead of a (forward) slash (/)? Is that just a typo? (Although you’ve also carried that through to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)