wolf530 Posted July 10, 2007 Share Posted July 10, 2007 I've just had to move a MediaWiki installation from one area of my site to a subdomain on another area. I need a way to forward URLs, so that whenever anyone requests a URL for the wiki at the old location, they are automatically forwarded to the URL on the new location. The system would need to add a subdomain, but also change the article pointer. For example: Old wiki: www.mydomain.com/wiki/index.php/Main_Page New wiki: wiki.mydomain.com/wiki/index.php?title=Main_Page Is there a simple way to do this? Or perhaps a script already out there that does this? I've looked quite a bit, but unfortunately I think I'm looking for the wrong thing. Any help to point me in the right direction would be very much appreciated. Info: a) php5, Linux, apache 1.3.37 B) Host: HostNine c) SafeMode=off Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 10, 2007 Share Posted July 10, 2007 i think the header file is what your referring header('location: the site location here'); does it make sense?? Quote Link to comment Share on other sites More sharing options...
wolf530 Posted July 10, 2007 Author Share Posted July 10, 2007 No, I'm sorry, it doesn't :-\ Can you give me a little more info? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.