I have a domain on which I run a personal file hosting service for my clients. Recently I had to use the domain to host a site and move the service to a subdomain. However I would like to preserve the 1000’s of links I’ve created.
I was thinking of doing it with htaccess and writing a rule like this although I am hardly even a newbie when it comes to Regex strings :
RewriteEngine on
RewriteBase /
RedirectMatch 301 ^/[regex]$ http://subdomain.website.com/$1
Where [regex] would somehow detect that the string is a 12 character encoded string. Ex :
0G0C2V251p2t
2f243p3T0D34
Using mod_alias:
Using mod_rewrite: