Blog url confusion when blog domain mapped to subdirectory
-
I have wp installed in a subdirectory of my root. It and the blog work fine there when I access the blog by main.com/blog. But I decided I’d like for the blog to have its own top level name. I got a new domain newblog.com which maps to the main.com/blog directory. I’ve done that before (without a blog) and there was no difference between accessing files by a browser whichever name they used, the one that knew it was really just a subdirectory or the one that treated it as a separate domain. This is not the case with wp, and I haven’t been able to come up with settings of the url in the options panel (blog and wp) that will achieve that result.
I can set the blog url to newblog.com and it will work, but if I then try main.com/blog it just bounces to the home page of main.com. If I peg the blog url to main.com/blog (as it was originally) that works too, but then newblog.com doesn’t work. I think it just goes to main.com, but I’ve encountered some “no such directory messages” at some point in my attempts, and I’ve lost track.
I’m willing to change some php code (even hardwired to my actual setup) if someone can point me to the right place.
There should be a way, but I am stuck.
- The topic ‘Blog url confusion when blog domain mapped to subdirectory’ is closed to new replies.