Dobrý den,
v .htaccess mám
RewriteRule [^/]+/([0-9]+)-[^/]+ /showthread.php?t=$1 [L,R=301]
Redirect 301 /Introductions /forumdisplay.php?1-Introductions
s tím, že z /Introductions/5-abc-def/ bych měl být přesměrován na /showthread.php?t=5-abc-def
to by fungovalo, ale to pravidlo Redirect 301 to nabourá (ať je umístěno nad tím nebo pod tím) a 301 pravidlo dostane přednost a přesměruje tedy /Introductions/5-abc-def/ na: /forumdisplay.php?1-Introductions
Máte prosím nápad jak by ta .htacces spravidla měla vypadat aby se to vzájemě neovlivňovalo?
Možná by fungovalo nahradit:
CitaceRedirect 301 /Introductions /forumdisplay.php?1-Introductions
tímto:
CitaceRedirectMatch 301 ^/Introductions/?$ /forumdisplay.php?2-Introductions
Nevím zda jsou nutné ty speciální znaky
Prepsat Redirect na RewriteRule
RewriteRule [^/]+/([0-9]+)-[^/]+ /showthread.php?t=$1 [L,R=301]
RewriteRule ^/Introductions/?$ /forumdisplay.php?2-Introductions [L,R=301]
Pro pohodlnější testování
https://htaccess.madewithlove.com/