rmpress
Member
Posted 2 years ago #
Hi,
My server is running mediawiki at the root of the site. WordPress is running in a subdirectory /blog. I have installed wordpress, and am able to login and access the administration panel, and am even able to create posts.
My problem is that, I must have some kind of misconfiguration for siteurl and home variables, because when going to the http://www.mydomain.com/blog , I'm redirected immediately to the root of the site (which loads the wiki). I'm able to access the posts directly, i.e. http://www.mydomain.com/blog/?p=3
Any suggestions on what I need to edit to get mydomain.com/blog to open the blog instead of redirecting to the root of the site?
Thanks!
rmpress
Member
Posted 2 years ago #
Just in case it wasn't obvious, http://www.mydomain.com is simply a filler for a generic website, and is not mine. It turns out that mydomain.com does have a working wordpress blog :P
baraider
Member
Posted 2 years ago #
Did you check the .htaccess under the /blog directory?
rmpress
Member
Posted 2 years ago #
Could you be more specific? What needs to be in the .htaccess file?
If you've got MediaWiki in the root of your public_html, there isn't an .htaccess file (at least, not in mine). The URL depends on how you configured the ShortURL: http://www.mediawiki.org/wiki/Manual:Short_URL - So which one did you do? :)
I think if you have the WordPress install loaded in a subfolder named 'blog' it should work by itself. What ARE the siteURLs for your WordPress installs?
Mind you it's almost always better to have things in subfolders than one in a subfolder of the other, to prevent things from going jiggy like that, but this should be workable.
rmpress
Member
Posted 2 years ago #
Okay, so thanks for answering about the ShortURLs (that was a little sarcasm, sorry).
Answer: You're not using ShortURLs on MediaWiki (the main page is http://www.wikichiro.org/index.php?title=Main_Page and if you were, it would be http://www.wikichiro.org/Main_Page or such).
Is http://www.wikichiro.org/blog the WordPress address or the Blog Address, as set in General Settings of your WP admin side?
What are the entire contents of your .htaccess file in /blog?
Problem resolved. It turns out that on XO.coms servers there is a program that forces all domains back to the root domain, and this was in an alias of the root. When we complained, someone suddenly found a "plug-in" which fixed the issue... Huzzah!
Thanks
katemorris
Member
Posted 2 years ago #
drsjp what is the plugin? I'm having the same issue!!
katemorris
Member
Posted 2 years ago #
Found it!
Disable Canonical URL Redirection