Wildcard redirects for paths in Google Domains

The Goal: redirect www.example.com/product/* to www.example.com/product using Google Domains

Background: I’m using github pages to host my site so I cannot add an htaccess file like a more traditional site. Also I had some issues with emails from my domain going to spam when I used Cloudflare.

There doesn’t seem to be an option to simply set up wildcard redirects for paths. it’s just subdomain.

Redirects in URL — link juice or not?

Guys, I’m wondering. 
If you have a URL with a redirect, e.g.

or the (old) phpinfo exploits, how could that possibly make google count this as a link?
And if I add a tier to it, bovec.net would be getting the link juice, not instafollowers.wtf?
Or am I wrong? 
I am seriously confused.

Combine multiple 301 redirects

I need to combine multiple redirects via my .htaccess in WordPress for future site migration and re-launch:

  • Domain change
  • Force HTTPS
  • Force www
  • URL structure changes (important to keep juice here)

I’m wondering if there’s any order this is preferably done? Page to page redirects before or after domain and HTTPS+www? Does it matter? And is the below code correct?

RewriteEngine On  # Force HTTPS, WWW URLs, and change of domain RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com$   [NC] RewriteRule ^ https://www.newdomain.com%{REQUEST_URI} [L,NE,R=301]  RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,NE,R=301]  ## 301 Redirects # Page to Page Redirect 301 pages/page-name https://www.newdomain.com/page-name Redirect 301 collections/products/product-1 https://www.newdomain.com/product/product-1  # BEGIN WordPress  RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$   - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]  # END WordPress 

Clicking custom plugin admin menu redirects to “No Update Required” on live site

I built a custom WordPress plugin that sends woocommerce purchase info to a CRM. The plugin works perfectly on localhost. But on live site, whenever I click on the admin menu, I always get redirected to "No Update Required" page.

enter image description here

Here is my main plugin file:

/**  * Plugin Name: Woo Crm  * Description: Sends customer data to the CRM on purchase.  */  if (!defined('ABSPATH')) {     echo 'I am a plugin I cannot do anything when called directly.';     exit; }  // Config define('PLUGIN_NAME', 'Woo Crm'); define('PLUGIN_SLUG', 'woo_crm'); define('PLUGIN_URL', plugin_dir_url(__FILE__)); define('PLUGIN_PATH', plugin_dir_path(__FILE__));  // Imports require_once(PLUGIN_PATH . 'utils/utils.php'); require_once(PLUGIN_PATH . 'views/views.php'); require_once(PLUGIN_PATH . 'services/crm/crm.php'); require_once(PLUGIN_PATH . 'views/components/settings/settings.php');  class WooCrm {     function __construct()     {         // Register Styles         add_action('admin_enqueue_scripts', array($  this, 'register_styles'));          // Create Menu Page         add_action('admin_menu', array($  this, 'plugin_setup_menu'));          // Add Settings Fields to Menu Page         add_action('admin_init', array('settings', 'init'));          // Woocommerce hook         /**          * First check if WooCommerce is activated          * Then check if hook isn't empty          */         if (class_exists('WooCommerce')) {             $  hook = get_when_to_send_data_hook();             if (!empty($  hook)) {                 add_action($  hook, array($  this, 'woo_order_create_client'));             }         }     }      function woo_order_create_client($  order_id)     {         // Create client logic     }      function plugin_setup_menu()     {         $  icon_url = PLUGIN_URL . "public/images/dash-icon.png";         add_menu_page(__(PLUGIN_NAME, PLUGIN_SLUG), __(PLUGIN_NAME, PLUGIN_SLUG), 'manage_options', PLUGIN_SLUG, array('views', 'admin'), $  icon_url);     }      function register_styles()     {         wp_register_style('woo_crm_admin', PLUGIN_URL . 'public/css/admin.css');         wp_enqueue_style('woo_crm_admin');     }  }  new WooCrm(); 

Any help would be highly appreciated.

.htaccess redirects disappeared after re-saving permalinks

Hello and sorry for these newbie questions… I want my wordpress website to load with https+non-www and without traling slashes. I put the following code in .htaccess file:

<IfModule mod_rewrite.c>  RewriteEngine On  # Remove trailing slash from non-filepath urls  RewriteCond %{REQUEST_URI} /(.+)/$    RewriteCond %{REQUEST_FILENAME} !-d  RewriteRule ^ https://domain.com/%1 [R=301,L]  # Force HTTPS and remove WWW  RewriteCond %{HTTP_HOST} ^www\.(.*)$   [OR,NC]  RewriteCond %{https} off    RewriteRule ^(.*)$   https://domain.com/$  1 [R=301,L] </IfModule> 
  1. These rules work fine but I can’t remove multiple slashes after domain. The website loads: "https://domain.com/////" and I want it to redirect to "https://domain.com"

  2. Also, these rules work if they are only in the beginning of the htaccess file and when I re-save the permalinks the rules disappear…

Could you help me, please

How can I do 301 instead of 302 redirects when there are multiple domains sharing the same site hosted in IIS?

I have several domains sharing the same site and use a default.asp as the default file where I test the SERVER_NAME variable and use Response.Redirect to redirect to the home page of the site requested.

The problem is that this type of redirect causes 302 status code. Even when having a rewrite section in my web.config where I created one redirect rule for each site with redirectType="Permanent", the status code 302 is returned.

That is bad for ranking pages in Google’s index. Does somebody know a way to solve that problem and return 301 status code?

I am creating backlinks with gsa SER but most are redirects from google, how do I uncheck that?

Estoy empezando a crear campañas, buenos proxies y captcha buenos. El problema viene que todos los backlinks tienen un redireccionamiento a la URL de destino. ¿Se debe a que el indexador rápido está activo o al tipo de enlace que estoy creando? ¿Cómo puedo solucionar eso? Gracias

Chrome Malware, Redirects To Ad When I Click Link in Google?

I’ve been dealing with this Chrome malware for awhile now, and I can’t identify where it’s coming from. Very occasionally, when I click on a top link in Google, it’ll redirect me to a site that looks like this (always the same green circle with the text “Loading”), and then to adware. The redirect is located at a new domain every time, but it’s always the same green circle. Can anyone help? I only have uBlock Origin installed and I installed it via the Chrome Store. I’m on OS X Mojave. Malwarebytes turns up nothing (PUPs enabled).