1
MrMercutio
Redirecting users and links to archive xoops site with htaccess file?
  • 2009/5/12 20:14

  • MrMercutio

  • Just popping in

  • Posts: 12

  • Since: 2006/7/30


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.


2
Burning
Re: Redirecting users and links to archive xoops site with htaccess file?
  • 2009/5/12 20:33

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Still learning CSS and... english

3
MrMercutio
Re: Redirecting users and links to archive xoops site with htaccess file?
  • 2009/5/12 21:10

  • MrMercutio

  • Just popping in

  • Posts: 12

  • Since: 2006/7/30


Okay, i fail at google, because i only ever found the ancient Xpress and the module at xoops-magazine.de

But alas, all the work is done, and if anyone knows how to redirect, i would very much appreciate if you could give me a hint where to look.

Thanks.

Login

Who's Online

310 user(s) are online (241 user(s) are browsing Support Forums)


Members: 0


Guests: 310


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits