Herzlich willkommen im Archiv vom ABAKUS Online Marketing Forum
Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.
Code: Alles auswählen
RewriteRule ^/category/allgemein/page/[0-9]+/$ http://www.globesurfer.de/category/allgemein/ [L,R=301]
zitiert von https://alvinalexander.com/web/apache-r ... ldcard-301Those URLs are fictitious, so you'll get error messages if you try to reach them, but I hope you get the idea of how this works. Perhaps a better example is if you just switched an old CGI or PHP program to a new URL structure, like this:
RedirectMatch 301 /handler.php?cat=(.*)&article=(.*) https://www.devdaily.com/$1/$2
With a command like that (again, a fictitious example) you could send a visitor from this URL:
https://www.devdaily.com/handler.php?ca ... ticle=1001
to this one:
https://www.devdaily.com/java/1001
As you can see, this ability to find patterns in your "source" string and then use them in your "destination" URLs is a very powerful Apache RedirectMatch technique.
Code: Alles auswählen
RedirectMatch 301 /vlog-weltreise-tag-* http://www.globesurfer.de/backpacker-weltreise-videos-vom-backpacker-trip/
zitiert von https://www.ksl-consulting.co.uk/301-re ... mples.htmlTesting 301 Redirects
In order to test that the Htaccess file is working and that each page is redirecting correctly, we recommend testing each 301 redirect using a Web Page Header Check on the redirected page URL's. The returned headers should show 301 redirects are in place for each redirected URL in the HTACCESS file.
Code: Alles auswählen
RedirectMatch 301 ^/vlog-weltreise-tag.*$ http://www.globesurfer.de/backpacker-weltreise-videos-vom-backpacker-trip/
Code: Alles auswählen
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Redirect 301 /category http://www.globesurfer.de/Backpacker-Weltreise-Kategorie
Redirect 301 /reise-bilder http://www.globesurfer.de/weltreise-bilder-vom-backpacker-trip/
Redirect 301 /weltreise-bilder http://www.globesurfer.de/weltreise-bilder-vom-backpacker-trip/
Redirect 301 /weltreise-budget http://www.globesurfer.de/backpacker-weltreise-budget-planen/
Redirect 301 /weltreise-ausruestung http://www.globesurfer.de/backpacker-ausrustungsliste-fur-meine-weltreise/
Redirect 301 /weltreise-route http://www.globesurfer.de/backpacker-weltreise-route-planen/
Redirect 301 ^/vlog-weltreise-tag.*$ http://www.globesurfer.de/backpacker-weltreise-videos-vom-backpacker-trip/
</IfModule>
# END WordPress
Code: Alles auswählen
Redirect 301 http://www.globesurfer.de/vlog-weltreise-tag-002-strand-und-party​/ http://www.globesurfer.de/weltreise-bilder-vom-backpacker-trip/