I have a very rudimentary knowledge of mod_rewrite. I am trying to move a MediaWiki instance off of an old OSX server to a new Ubuntu host. The old url schema I inherited was fully.qualified.domain:16080/index.php, etc where the new url will just be fully.qualified.domain/index.php. I am aware of the SERVER_PORT conditional statement, but I am not sure how to translate traffic redirected from the original url and strip out the port number. Unfortunately, there are a bunch of hard links to articles on the old url that need to be tracked down over time. Until that happens, we need to perform a more friendly migration strategy.
Examples or documentation links (other than Apache's mod_rewrite docs) would be appreciated.
Thank you. -- Robert L. DeSilets, Jr. Sr. IT Support Specialist ISC-CSG desilets@isc.upenn.edu (215)898-0067
From what I'm getting, all you are trying to do is move your Mediawiki
instance from port 16080 to port 80, the default http port, using the same domain name. (If I'm wrong, stop here and correct me.) If that's all you are doing, you could create a small html file that has a meta tag to redirect everyone to the new URL (without the port number included). As for mediawiki, you could just copy the database that you have and upload it to the new server, re-download Mediawiki to the new server, (make sure you have PHP5 enabled and running) and the install/configure script will automatically start using that database. I don't see any need to meddle with Apache, as all you would be doing is transferring your domain name to a different IP/nameserver.
mediawiki-l@lists.wikimedia.org