Two Parked Domains And Mediawiki

Okay, "level 2" support said it wasn't their problem and I should try here--but I somehow still think it is the way the second domain is setup but here goes anyway.<br /><br />I've previously had one domain (zaventh.com) running Mediawiki at <a href="http://www.zaventh.com/wiki" target="_blank">http://www.zaventh.com/wiki</a> . Now, I wanted to simply throw a new domain on top of that (nexuswiki.com) so that if you went to zaventh.com/wiki, it would be the exact same as nexuswiki.com/wiki. TCH parked the second domain for me, and I have it all setup as you would expect a domain should be.<br /><br />Now, if one navigates to <!-- w --><a class="postlink" href="http://www.nexuswiki.com/wiki">www.nexuswiki.com/wiki</a><!-- w -->, it automatically rewrites the url to be pretty, and it should take you to <a href="http://www.nexuswiki.com/wiki/index.php/Main_Page" target="_blank">http://www.nexuswiki.com/wiki/index.php/Main_Page</a>, but it doesn't. Instead it takes you to <a href="http://www.zaventh.com/wiki/index.php/Main_Page" target="_blank">http://www.zaventh.com/wiki/index.php/Main_Page</a>. At first I thought perhaps the domain wasn't working right, but if you navigate to <a href="http://www.nexuswiki.com/wiki/index.php/Main_Page" target="_blank">http://www.nexuswiki.com/wiki/index.php/Main_Page</a> it works fine and as expected, except that if you save an edited page, it will redirect you back to the right page, but with the zaventh.com domain in place of nexuswiki.com.<br /><br />My next and logical assumption was that it was using the domain name as a variable somewhere, but I couldn't see any obvious place to set it as it wasn't in the main config. So, I first search the entire mysql database, and there are 0 reference to either domain there. Next, I downloaded every file in the wiki and <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->grep -i "zaventh" *.*<!--c2--></div><!--ec2-->'d them all, and nothing came up. Nothing for the other domain either. This is what led me to believe somehow that nexuswiki.com was somehow resolving to zaventh.com, and when a redirect was called on the wiki, that is where it was going.<br /><br />At any rate, if I would navigate to <a href="http://www.nexuswiki.com/index.php" target="_blank">http://www.nexuswiki.com/index.php</a>, it still wouldn't work right. The only thing between index.php and Main_Page is redirect.php. None of these files contain any actual domain names, but rather are used to rewrite the url I believe. I have attached these files, though I can't really see anything in them that would be causing the problem I am having.<br /><br />Any help or ideas of where else to look would be great... Thanks.<!--content-->
I'd suggest looking at your .htaccess file(s) and see if there are any redirect or mod_rewrite directives that might perform a redirect from zaventh.com to nexuswiki.com.<!--content-->
<!--QuoteBegin-TCH-David+Aug 3 2005, 03:08 PM--><div class='quotetop'>QUOTE(TCH-David @ Aug 3 2005, 03:08 PM)</div><div class='quotemain'><!--QuoteEBegin-->I'd suggest looking at your .htaccess file(s) and see if there are any redirect or mod_rewrite directives that might perform a redirect from zaventh.com to nexuswiki.com.<br /><div align="right"><a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=142538"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Oh.. I thought of that too, so right now my .htaccess file is empty. MediaWiki doesn't include it's own .htaccess file except for in the subdirs which just deny access to them, so I forget what was in the original .htaccess but it was nothing related to mediawiki...<!--content-->
so did you fix it because it seems to be working on my end.<!--content-->
Is there anyone who can help me with this same problem again? Previously "TCH-Rick" resolved my issue and it has been working fine until recently. I PMed him but he appears to be unavailable. Thank you.<!--content-->
Mediawiki modified the URL to make it "tidy" in two places. A key one is through your .htaccess. I'd guess that somewhere you have some of the redirects in there with a domain name included. The other one is within a php redirect file. <br /><br />Did you change anything (upgrade) when it stopped working<!--content-->
I think I did in fact upgrade it a few months back (to the latest minor revision). However, the .htaccess file should not have changed since it was something I added on later anyway and is not included with mediawiki by default. Here is the file below:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->php_value upload_max_filesize 10m<br />RewriteEngine on<br /><br /># uncomment this rule if you want Apache to redirect from <!-- w --><a class="postlink" href="http://www.mysite.com/">www.mysite.com/</a><!-- w --> to <!-- w --><a class="postlink" href="http://www.mysite.com/wiki/Main_Page">www.mysite.com/wiki/Main_Page</a><!-- w --><br />RewriteRule ^$ /wiki/Main_Page [R] <br /><br /># do the rewrite<br />RewriteRule ^wiki/?(.*)$ /w/index.php?title=$1 [L,QSA]<!--c2--></div><!--ec2--><br /><br />If I disable the bottom rewrite line, it seems to not forward to my first domain anymore... but then the urls are terrible. I don't see how that line could come up with "zaventh.com" either... since it is still no where in any configuration or variable in mediawiki.<br /><br /><br />EDIT:<br /><br />For some more info, I have tried many other solutions of getting this to work as layed out here:<br /><br /><a href="http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url" target="_blank">http://meta.wikimedia.org/wiki/Eliminating...hp_from_the_url</a><br /><br />But none except the above mentioned .htaccess rewrite ever worked for me.<!--content-->
 
Back
Top