I am trying to create redirects to content on my old site in the form of:
domain.com/fiction/UNIQUE/book
to
sub.domain.com/fiction/UNIQUE/book
Not all pages on domain.com
should redirect to sub.domain.com
. Just the ones that contain /fiction/
. UNIQUE
is a dynamically generated ID
.
So this should be simple to check for the existence of domain.com/fiction/
and replacing with sub.domain.com/fiction/
then adding the rest of the string /UNIQUE/book
.
I have looked at Mod Rewrite and posts with QUERY_STRING
, but my understating is limited and this appears to only be applicable with ?query style dynamically generated pages.
Thanks for any help.