In die .htaccess im root der site. Wenn es diese noch nicht gibt, dann anlegen.
Code: Select all
RewriteEngine on
Redirect 301 /social-links/ https://www.badminton-tips.de/?Social-Links
In die .htaccess im root der site. Wenn es diese noch nicht gibt, dann anlegen.
Code: Select all
RewriteEngine on
Redirect 301 /social-links/ https://www.badminton-tips.de/?Social-Links
Super. Klappt auch ohne /olape wrote: ↑Thu Mar 02, 2023 8:25 pmindex.php für /social-links/Sollte es eigentlich tun.Code: Select all
<?php header('Location: https://www.badminton-tips.de/?Social-Links'); exit; ?>
Es könnte sein, dass du bei Instagram statt https://www.badminton-tips.de/social-links https://www.badminton-tips.de/social-links/ angeben musst. Also der / am Ende. Probieren.
Danke. Werde ich wahrscheinlich später testen. Muss jetzt weg.olape wrote: ↑Thu Mar 02, 2023 8:34 pmIn die .htaccess im root der site. Wenn es diese noch nicht gibt, dann anlegen.Besser erst mal mit 302 testen. Erst wenn es funktioniert 301 setzen.Code: Select all
RewriteEngine on Redirect 301 /social-links/ https://www.badminton-tips.de/?Social-Links
https://www.badminton-tips.de/social-links ergibt:
Code: Select all
Status Code URL IP Page Type Redirect Type Redirect URL
301 https://www.badminton-tips.de/social-links server_redirect permanent https://www.badminton-tips.de/social-links/
302 https://www.badminton-tips.de/social-links/ 109.237.138.42 server_redirect temporary https://www.badminton-tips.de/?Social-Links
200 https://www.badminton-tips.de/?Social-Links 109.237.138.42 normal none none
Code: Select all
Status Code URL IP Page Type Redirect Type Redirect URL
302 https://www.badminton-tips.de/social-links/ 109.237.138.42 server_redirect temporary https://www.badminton-tips.de/?Social-Links
200 https://www.badminton-tips.de/?Social-Links 109.237.138.42 normal none none
Hatte ich mir gedacht, aber dann doch nicht gepostet, weil es ohne / eigentlich netter aussieht. Letztlich auch eine Frage des Geschmacks.
Keine Ahnung, was ihr meint.
Ohne / am Ende, wird eine zusätzliche Weiterleitung durchgeführt (der Server antwortet auf die Anfrage, dass eben noch einmal mit einem / am Ende nachgefragt werden soll). Ist aber nicht wirklich ein Problem.