The configuration: MediaWiki 1.15.1 PHP 5.2.12 (cgi) MySQL 5.0.81-log Website www.wikivalley.com Clean installation with "Short URL" rewrite rules in .htaccess The problem: Apparently , every URL for non-defined article like http://www.wikivalley/com/wiki/SomePage redirected to http://wikivalley/com/wiki/SomePage ( not omission of WWW prefix). Also http://www.wikivalley.com is redirected to http://wikivalley.com/wiki/Main_Page . I put a workaround using rewrite rules , but every such request results in two back and force "301 Redirect" calls ( + about 1 second latency). Did i missed something in configuration? Any help is deeply appreciated! Stas
On 10-Feb-10 16:23, stas@khirman.com wrote:
The configuration: MediaWiki 1.15.1 PHP 5.2.12 (cgi) MySQL 5.0.81-log Website www.wikivalley.com Clean installation with "Short URL" rewrite rules in .htaccess
The problem:
Apparently, every URL for non-defined article like http://www.wikivalley/com/wiki/SomePage redirected to http://wikivalley/com/wiki/SomePage (note omission of WWW prefix). Also http://www.wikivalley.com is redirected to http://wikivalley.com/wiki/Main_Page.
I put a workaround using rewrite rules, but every such request results in two back and force "301 Redirect" calls (+ about 1 second latency).
Did i missed something in configuration?
Any help is deeply appreciated!
I'm not exactly sure what the problem is? Is the only thing happening "wrong" that when your pages redirect it's simply omitting the "www." subdomain?
If so, (1) that shouldn't be an issue on a properly setup hosting account, and (2) the issue is probably in your RewriteConds/Rules.
You may have something looks similar to this:
RewriteCond ^www.wikivalley.com$ RewriteRule ^(.*)$ http://wikivalley.com/$1
Of course, without seeing the contents of .htaccess, it will be difficult to pinpoint the EXACT changes you need to make.
Curulan,
Thank you for prompt response, but unfortunately problem seems to be inside of Wiki itself. I removed almost all .htaccess entries ( beside needed php5) and reverted back all configuration changes and now have an original setup. When I point browser to http://www.wikivalley.com/ , I'm getting 301 redirect to http://wikivalley.com/index.php?title=Main_Page (note lack of WWW).
MediaWiki(1.15.1) hosted by popular 1and1 hosting.
Will appreciate any future ideas,directions, recommendations, etc...
Regards Stas
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l- bounces@lists.wikimedia.org] On Behalf Of Curulan Angelicos Sent: Wednesday, February 10, 2010 3:32 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Redirection to non-www domain name
On 10-Feb-10 16:23, stas@khirman.com wrote:
The configuration: MediaWiki 1.15.1 PHP 5.2.12 (cgi) MySQL 5.0.81-log Website www.wikivalley.com Clean installation with "Short URL" rewrite rules in .htaccess
The problem:
Apparently, every URL for non-defined article like http://www.wikivalley/com/wiki/SomePage redirected to http://wikivalley/com/wiki/SomePage (note omission of WWW prefix). Also http://www.wikivalley.com is redirected to http://wikivalley.com/wiki/Main_Page.
I put a workaround using rewrite rules, but every such request results in two back and force "301 Redirect" calls (+ about 1 second latency).
Did i missed something in configuration?
Any help is deeply appreciated!
I'm not exactly sure what the problem is? Is the only thing happening "wrong" that when your pages redirect it's simply omitting the "www." subdomain?
If so, (1) that shouldn't be an issue on a properly setup hosting account, and (2) the issue is probably in your RewriteConds/Rules.
You may have something looks similar to this:
RewriteCond ^www.wikivalley.com$ RewriteRule ^(.*)$ http://wikivalley.com/$1
Of course, without seeing the contents of .htaccess, it will be difficult to pinpoint the EXACT changes you need to make. -- Curulan Angelicos Leader, Clan Titan OpenPG KeyID: 0x8B9BB61C
Clan Website: http://clantitan.org
Stas Khirman wrote:
Curulan,
Thank you for prompt response, but unfortunately problem seems to be inside of Wiki itself. I removed almost all .htaccess entries ( beside needed php5) and reverted back all configuration changes and now have an original setup. When I point browser to http://www.wikivalley.com/ , I'm getting 301 redirect to http://wikivalley.com/index.php?title=Main_Page (note lack of WWW).
MediaWiki(1.15.1) hosted by popular 1and1 hosting.
Will appreciate any future ideas,directions, recommendations, etc...
Regards Stas
Set $wgServer = "www.wikivalley.com"; at the end of LocalSettings.php
Thanks!
It works with some minor optimization:
$wgServerName = "www.wikivalley.com"; $wgServer = $wgProto.'://' . $wgServerName;
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l- bounces@lists.wikimedia.org] On Behalf Of Platonides Sent: Thursday, February 11, 2010 4:35 AM To: mediawiki-l@lists.wikimedia.org Subject: Re: [Mediawiki-l] Redirection to non-www domain name
Stas Khirman wrote:
Curulan,
Thank you for prompt response, but unfortunately problem seems to be
inside
of Wiki itself. I removed almost all .htaccess entries ( beside needed
php5)
and reverted back all configuration changes and now have an original
setup.
When I point browser to http://www.wikivalley.com/ , I'm getting 301 redirect to http://wikivalley.com/index.php?title=Main_Page (note lack
of
WWW).
MediaWiki(1.15.1) hosted by popular 1and1 hosting.
Will appreciate any future ideas,directions, recommendations, etc...
Regards Stas
Set $wgServer = "www.wikivalley.com"; at the end of LocalSettings.php
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org