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
https://forums.phpfreaks.com/topic/59184-forward-a-url-and-change-a-component/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.