Jump to content

Forward a URL and change a component


wolf530

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.