301 Redirect Link to Media

If you have access to the .htaccess file, a quick 301 redirect should fix that for yah! Redirect 301 /media/2018/06/somedocument.docx https://www.mycompany.com/media/2018/05/somedocument.docx (If you don’t there are other ways to handle it inside the theme if you need to.)

WordPress installed on a virtual machine and behind a reverse proxy is redirecting to the VM’s IP address

I found the solution to this. Apparently going to wp-includes/canonical.php and changing the line $redirect_url = apply_filters(‘redirect_canonical’, $redirect_url, $requested_url); to $redirect_url = null; fixes this behavior, though it’s a unstable fix since it’ll be overwritten by updates. Why is this so hard to get working? Every other webserver software I’ve used has not had a … Read more

How to create multiple Rewrite-Rule for various site in single htaccess?

I’m currently using this- # TN – BEGIN https to https <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^scorewheel\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.scorewheel\.com$ RewriteRule .* https://scorewheel.com%{REQUEST_URI} [R=301,L] </IfModule> # TN – END http to https # TN – Begin cdn redirection <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^cdn.scorewheel\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.cdn.scorewheel\.com$ RewriteCond … Read more

How to 301 redirect sub domain post URL to root domain

The Webmasters’ StackExchange has a solution that sounds perfect for you. Below, I have adapted it to your specific request. Hope this helps! Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} !^(www)\. [NC] RewriteCond %{HTTP_HOST} ^blog\.aisee\.co\.in [NC] RewriteRule (.*) http://aisee.co.in/scholarship/%1 [R=301,L]