I'm a newbie in Drupal 8, Somehow, in my website, there is redirection due to double
‘/’ in the URLs, an example from
redirect 302 to
Is it possible to make it 301 redirect so it is beneficial to show Google?
I have tried using .htaccess (like .htaccess remove double slash from URL or Issue In Removing Double Or More Slashes From URL By .htaccess) but nothing work, still using 302 redirect, also if I using the Redirect module, it cannot use double slash
I need to redirect 301 (Permanent redirect) so it will work for my SEO
Note: double slash shows because I'm using url('') + alias url in my template, I didn't notice that it make double slash because it was redirect successfully to my article, but for SEO Google, it was big mistake, so I'm hope if there are any solution? such as make url with double slash as not found or make it to 301 redirect for fixing my SEO.