ich möchte gerne die URL: https://www.gitarre-spielen-lernen.de/f ... rum25.html auf folgende via 301 weiterleiten: https://www.gitarre-spielen-lernen.de/f ... rum28.html
Komischerweise funktioniert dieser Ausdruck nicht, da immer zu https://www.gitarre-spielen-lernen.de/f ... .html?f=25 weitergeleitet wird.
Code: Alles auswählen
RedirectPermanent /forum/forum25.html http://www.gitarre-spielen-lernen.de/forum/forum28.html
Ich habe im Ordner /forum bereits eine htaccess mit folgendem Code liegen. Kann es vielleicht daran liegen?
Code: Alles auswählen
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} /viewforum([0-9]*)-([0-9]*)-s([0-9]*).html
RewriteRule (.*) /forum/viewforum.php?f=%1&topicdays=%2&start=%3 [L]
RewriteCond %{REQUEST_FILENAME} /forum([0-9]*).html
RewriteRule (.*) /forum/viewforum.php?f=%1 [L]
RewriteCond %{REQUEST_FILENAME} /forum([0-9]*)-s([0-9]*).html
RewriteRule (.*) /forum/viewforum.php?f=%1&start=%2 [L]
RewriteCond %{REQUEST_FILENAME} /ptopic([0-9]*).html
RewriteRule (.*) /viewtopic.php?t=%1&view=previous [L]
RewriteCond %{REQUEST_FILENAME} /ntopic([0-9]*).html
RewriteRule (.*) /viewtopic.php?t=%1&view=next [L]
RewriteCond %{REQUEST_FILENAME} /ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-s([0-9]*).html
RewriteRule (.*) /forum/viewtopic.php?t=%1&postdays=%2&postorder=%3&start=%4 [L]
RewriteCond %{REQUEST_FILENAME} /ftopic([0-9]*)-s([0-9]*).html
RewriteRule (.*) /forum/viewtopic.php?t=%1&start=%2 [L]
RewriteCond %{REQUEST_FILENAME} /ftopic([0-9]*).html
RewriteRule (.*) /forum/viewtopic.php?t=%1 [L]
RewriteCond %{REQUEST_FILENAME} /ftopic([0-9]*).html
RewriteRule (.*) /forum/viewtopic.php?t=%1&start=%2&postdays=%3&postorder=%4&highlight=%5 [L]
<Files config.php>
Deny from all
</Files>