So der Gedankengang war nicht schlecht, es funktioniert, fast..
Die alte URL ist die:
https://beispiel.rocks/beispiel.rocks/vb5.rcsky.de/modellbau-aller-art-36/hms-victory-von-deagostini-baubericht-10365/
diese wird durch meine eigene Rewrite Rule auf diese umgeschrieben:
https://beispiel.rocks/beispiel.rocks/vb5.rcsky.de/showthread.php?t=10365
die wiederum vom Forum auf die aktuelle URL, zumindest beinahe
https://beispiel.rocks/vb5.rcsky.de/forum/community/modellbau-aller-art/6046-hms-victory-von-deagostini-baubericht?t=10365
Warum so? Weil sich die Zählweise der Threads geändert hat, so ist auch die Zahl anders, deswegen in den 2 Schritten, beim Upgrade von VB4 zu VB5 hat der Updater quasi jede URL eingelesen und eine Weiterleitung eingerichtet. Nun hängt da am Ende dieser Parameter, quasi die alte Information, welcher Thread das ist.
Nun sollte da eigentlich:
https://beispiel.rocks/vb5.rcsky.de/forum/community/modellbau-aller-art/6046-hms-victory-von-deagostini-baubericht
stehen, die wird intern verlinkt.
Mit dem zusätzlichen Parameter ist es ja eine neue URL, oder nicht? Und da bringt mir das alles nicht ganz so viel. Da Externe und Interne Verlinkung sich bekämpfen.
Es gibt zwar einen canonical, aber ganz sauber ist das ja nun nicht? Hat irgendwer eine Idee?
Die Htaccess sieht so aus:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule [^/]+/[^/]+-([0-9]+)/ https://beispiel.rocks/beispiel.rocks/vb5.rcsky.de/showthread.php?t=$1 [L,R=301]
# In some cases where you have other mod_rewrite rules, you may need to remove the
# comment on the following RewriteBase line and change it to match your folder name.
# This resets the other mod_rewrite rules for just this directory
# If your site was www.example.com/forum, the setting would be /forum/
RewriteBase /
# Send css calls directly to the correct file VBV-7807
RewriteRule ^css.php$ core/css.php [NC,L]
# Redirect old install path to core.
RewriteRule ^install/ core/install/ [NC,L]
# Main Redirect
RewriteCond %{REQUEST_URI} !\.(gif|jpg|jpeg|png|css)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?routestring=$1 [L,QSA]
# Because admincp is an actual directory.
RewriteRule ^(admincp/)$ index.php?routestring=$1 [L,QSA]
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/atom+xml \
text/javascript \
application/x-javascript \
application/javascript \
application/json \
application/rss+xml \
application/vnd.ms-fontobject \
application/x-font-ttf \
application/xhtml+xml \
application/xml \
font/opentype \
image/svg+xml \
image/x-icon \
text/css \
text/html \
text/plain \
text/x-component \
text/xml
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType application/x-javascript A1209600
ExpiresByType text/javascript A1209600
ExpiresByType application/javascript A1209600
ExpiresByType text/css A31536000
ExpiresByType image/x-icon A2592000
ExpiresByType image/icon A2592000
ExpiresByType application/x-ico A2592000
ExpiresByType application/ico A2592000
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A1209600
ExpiresByType image/jpg A1209600
ExpiresByType image/png A1209600
ExpiresByType application/x-shockwave-flash A1209600
ExpiresByType font/ttf A2592000
ExpiresByType font/otf A2592000
ExpiresByType font/x-woff A2592000
ExpiresByType image/svg+xml A2592000
ExpiresByType font/truetype A2592000
ExpiresByType font/opentype A2592000
ExpiresByType application/x-font-woff A2592000
ExpiresByType application/vnd.ms-fontobject A2592000
</IfModule>
<IfModule mod_headers.c>
Header set Connection keep-alive
<filesmatch "\.(ico|flv|gif|swf|eot|woff|otf|ttf|svg)$">
Header set Cache-Control "max-age=2592000, public"
</filesmatch>
<filesmatch "\.(jpg|jpeg|png)$">
Header set Cache-Control "max-age=1209600, public"
</filesmatch>
<filesmatch "\.(eot|woff|otf|ttf|svg)$">
Header set Cache-Control "max-age=2592000, public"
</filesmatch>
# css and js should use private for proxy caching https://beispiel.rocks/developers.google.com/speed/docs/best-practices/caching#LeverageProxyCaching
<filesmatch "\.(css)$">
Header set Cache-Control "max-age=31536000, private"
</filesmatch>
<filesmatch "\.(js)$">
Header set Cache-Control "max-age=1209600, private"
</filesmatch>
</IfModule>
Alles anzeigen
eingefügt hatte ich den Teil:
RewriteRule [^/]+/[^/]+-([0-9]+)/ https://beispiel.rocks/beispiel.rocks/vb5.rcsky.de/showthread.php?t=$1 [L,R=301]
Der Witz an der Sache, ohne den Einbau, nur durch die "Firmeneigene Weiterleitung" hängt VB5 ebenso den Parameter an.
also,wenn ich von dieser URL komme:
https://beispiel.rocks/beispiel.rocks/vb5.rcsky.de/showthread.php?t=10365
Ist der Parameter immernoch da.
Ich fühl mich gerade, wie wenn ich mit 180 km/h aufn Bike übern Highway gebrettert bin, um den letzten km die Bude schieben zu müssen.... MMmmmeeeeehhh