Posted - 08/08/2018 : 11:27:55
The following have no effect at all:-
RewriteCond %{QUERY_STRING} ^prod=Barbell-with-Jewelled-Ball$ RewriteRule ^proddetail\.php$ https://extreme-body-jewellery.co.uk/Barbell-with-one-Jewelled-Ball? [R=301,L]
RewriteCond %{QUERY_STRING} ^prod=Barbell\-with\-Jewelled\-Ball$ RewriteRule ^proddetail\.php$ https://extreme-body-jewellery.co.uk/Barbell-with-one-Jewelled-Ball? [R=301,L]
RewriteCond %{QUERY_STRING} ^prod=Titanium_Curved_Barbell_with_cones_1.6mm$ RewriteRule ^proddetail\.php$ https://extreme-body-jewellery.co.uk/Titanium-Curved-Barbell-High-Polish-with-cones-1.6mm? [R=301,L]
RewriteCond %{QUERY_STRING} ^prod=Titanium_Curved_Barbell_with_cones_1\.6mm$ RewriteRule ^proddetail\.php$ https://extreme-body-jewellery.co.uk/Titanium-Curved-Barbell-High-Polish-with-cones-1.6mm? [R=301,L]
RewriteCond %{QUERY_STRING} ^prod=Titanium_Curved_Barbell_with_cones_1.6mm$ RewriteRule ^proddetail\.php$ /Titanium-Curved-Barbell-High-Polish-with-cones-1.6mm? [R=301,L]
RewriteCond %{QUERY_STRING} ^prod=CircularBarbell_CB\-9$ RewriteRule ^proddetail\.php$ https://extreme-body-jewellery.co.uk/Circular-Barbell-9mm-00ga? [R=301,L]
The following cause "internal server error"
RewriteCond %{QUERY_STRING} ^prod=Titanium_Curved_Barbell_with_cones_\1.6mm$ RewriteRule ^proddetail\.php$ https://extreme-body-jewellery.co.uk/Titanium-Curved-Barbell-High-Polish-with-cones-1.6mm? [R=301,L]
The following do work without a problem:-
RewriteCond %{QUERY_STRING} ^prod=Ball_Closure_Ring_12mm$ RewriteRule ^proddetail\.php$ https://extreme-body-jewellery.co.uk/Ball-Closure-Ring-12mm? [R=301,L]
RewriteCond %{QUERY_STRING} ^prod=Septum_Spike_Curved__4mmx38mm_spikes$ RewriteRule ^proddetail\.php$ https://extreme-body-jewellery.co.uk/Septum-Spike-Curved-4mmx38mm-spikes? [R=301,L]
RewriteCond %{QUERY_STRING} ^prod=Silver_belly_Bar_with_3_stones_SJB158$ RewriteRule ^proddetail\.php$ https://extreme-body-jewellery.co.uk/Silver-Belly-Bar-with-3-stones-? [R=301,L
so it seems the problems occur when either "." or "-" (the space filler character) are present. Using backslash "\" before "." or "-" has no effect. Using backslash before a number causes a server error
Martin
![Go to Top of Page](images/icon_go_up.svg)
|