I'm struggling to correct the aftereffects a bogus redirect I made which led to a lot of 404s.I need to 301 redirect URLs that look likeexample.com/xysometexttoexample.com/xy/sometextthe example.com/xy and example.com/xy/ parts are permanent, while sometext is unique for each page (i.e. .*)I'm only starting to undestand mod-rewrite syntax, help much appreciated. Thanks.
Rewrite cond regex to split an url with a /
301 redirect;mod rewrite
ok I figured it outRewriteRule ^xy(.*)$ /xy/$1 [R=301,L]