1
Hey,
I'm running into a bit of trouble, and I was hoping I could ask your advice. I'm running an aging blog on a XOOPS platform using the old XPress module.
My intention is to deprecate the use of the wordpress module in Xoops. It is a great module, but it is dead and no one seem to be maintaining it.
I have mirrored the old site to keep in the archive, i would like to use .htaccess to permanently move all the incoming visitors and links to the subdomain "old".
The link pattern in both sites are [mydomain.com]/modules/wordpress/[the blog post link].
So, any blog post link out there should go to old.mydomain.com - not the top domain.
I've read dozens and dozens of htaccess guides, but i can't seem to find the answer. It will probably be very simple, but so far all my attempts to edit the htaccess results in a 500-error.
RewriteCond %{HTTP_HOST} ^http://[mydomain.com/modules/wordpress/ [OR]
RewriteCond %{HTTP_HOST} ^http://[
http://www.mydomain.com]/modules/wordpress/
RewriteRule ^(.*)$
http://old.[mydomain.com]/modules/wordpress/$ [R=301,NC,L]
Hopefully you all know the answer, and hopefully you could share it with me before I get completely bald from tearing my hair out.
Cheers and thanks in advance.