I am about to move our wiki to a new server, and I think I've got the whole moving the database part down, but is there a way to redirect all pages (links) to the new server? I know I can redirect index.php with just a normal redirect...so no worries there....but that will just bounce them to the main page. What about if they are coming straight to an article they have bookmarked or linked to?
Example...say a page link was: http://originalserver/gecwiki/index.php/Acronyms but will now be: http://newserver/gecwiki/index.php/Acronyms
Thanks, Dave
I think if you do an .htaccess 301 redirect from one domain to the other, that'll take care of it for you, won't it?
Sean
On 8/16/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
I am about to move our wiki to a new server, and I think I've got the whole moving the database part down, but is there a way to redirect all pages (links) to the new server? I know I can redirect index.php with just a normal redirect...so no worries there....but that will just bounce them to the main page. What about if they are coming straight to an article they have bookmarked or linked to?
Example...say a page link was: http://originalserver/gecwiki/index.php/Acronyms but will now be: http://newserver/gecwiki/index.php/Acronyms
Thanks, Dave _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I think if you do an .htaccess 301 redirect from one domain to the other, that'll take care of it for you, won't it?
.htaccess should work. Or, you can probably do something with the DNS records, which would improve performance.
I've setup the .htaccess file in the servers directory, and I've made sure to set the AllowOverrides in Apache to "All"....but it doesn't seem to make any difference. Nothing bothers to redirect...
Here is an example of what I have in the .htaccess file: Redirect /oldwikidirectory http://newserver/newwikidirectory
Am I missing something? Something else I need to set in Apache?
Thanks, Dave
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Thomas Dalton Sent: Thursday, August 16, 2007 6:41 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Way to redirect all pages to new server?
I think if you do an .htaccess 301 redirect from one domain to the other, that'll take care of it for you, won't it?
.htaccess should work. Or, you can probably do something with the DNS records, which would improve performance.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Did you change your server variable in LocalSettings? I think you are really asking about how to get www.oldserver.com to point to www.newserver.com, but you might need to change LocalSettings also. How much control do you have over your server? Cause you need to make changes in your DNS entries to get the URL to redirect the way you want it to.
-Courtney
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of David_S_Green@Dell.com Sent: Wednesday, August 29, 2007 6:17 PM To: mediawiki-l@lists.wikimedia.org Subject: Re: [Mediawiki-l] Way to redirect all pages to new server?
I've setup the .htaccess file in the servers directory, and I've made sure to set the AllowOverrides in Apache to "All"....but it doesn't seem to make any difference. Nothing bothers to redirect...
Here is an example of what I have in the .htaccess file: Redirect /oldwikidirectory http://newserver/newwikidirectory
Am I missing something? Something else I need to set in Apache?
Thanks, Dave
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Thomas Dalton Sent: Thursday, August 16, 2007 6:41 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Way to redirect all pages to new server?
I think if you do an .htaccess 301 redirect from one domain to the other, that'll take care of it for you, won't it?
.htaccess should work. Or, you can probably do something with the DNS records, which would improve performance.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I finally got .htaccess to work. I was matching the path exactly (upper and lower case), but it seems .htaccess simply wanted all lower case. It is redirecting perfectly now.
Thanks everyone for the help.
Dave
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Christensen, Courtney Sent: Wednesday, September 05, 2007 8:31 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Way to redirect all pages to new server?
Did you change your server variable in LocalSettings? I think you are really asking about how to get www.oldserver.com to point to www.newserver.com, but you might need to change LocalSettings also. How much control do you have over your server? Cause you need to make changes in your DNS entries to get the URL to redirect the way you want it to.
-Courtney
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of David_S_Green@Dell.com Sent: Wednesday, August 29, 2007 6:17 PM To: mediawiki-l@lists.wikimedia.org Subject: Re: [Mediawiki-l] Way to redirect all pages to new server?
I've setup the .htaccess file in the servers directory, and I've made sure to set the AllowOverrides in Apache to "All"....but it doesn't seem to make any difference. Nothing bothers to redirect...
Here is an example of what I have in the .htaccess file: Redirect /oldwikidirectory http://newserver/newwikidirectory
Am I missing something? Something else I need to set in Apache?
Thanks, Dave
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Thomas Dalton Sent: Thursday, August 16, 2007 6:41 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Way to redirect all pages to new server?
I think if you do an .htaccess 301 redirect from one domain to the other, that'll take care of it for you, won't it?
.htaccess should work. Or, you can probably do something with the DNS records, which would improve performance.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org