elementax — 2012-07-01T17:52:12-04:00 — #1
I recently purchased an addition domain for my website to be used for its blog.
What I really want are two separate identities, mysite.com and myblog.com, not mysite.com and mysite.com/blog (if that makes sense :P)
Anyway, I've purchased the blog domain and when I try to set it up, all its doing right now is redirecting, but in reality, I want it to redirect, but show the same url at the top.
Right now if I were to go to myblog.com for example, it would go to mysite.com/blog/wordpress/index.php as a redirect, and that is all messy. Yes, I still want the blog to go to that subfolder of my original site, but I want it to instead of showing the mess seen above, I want it to stay as "myblog.com" when it goes to the index.
Would this be possible, and if so how would I go about doing it?
Thanks a ton,
Update: The best I can seem to get is something along the lines of myblog.com/blog/wordpres/index.php, which is better, but still not what I'm trying to do
felgall — 2012-07-01T18:10:33-04:00 — #2
When you set up an add-on domain you specify the folder you want it to use as its home folder. Simply point that at the WordPress folder and you should get what you want - no redirect required.
elementax — 2012-07-01T19:29:17-04:00 — #3
I'm not quite sure what you mean. What I'm currently doing is editing a file named default.asp in my main website directory, and basically telling it that whenever myblog.com is typed, go to mysite.com/blog/wordpress/index.php, but again, it will just show all that junk with it, when I really want that path to be seen as simply "myblog.com" ;/
ralphm — 2012-07-01T19:34:12-04:00 — #4
For what it's worth, none of this seems like a very good idea to me. I would go for mysite.com/blog as your blog URL. It's straightforward and perfectly fine, and saves you all this trouble.
It looks like you've put your WP files in a /blog/ folder and then in a /wordpress/ folder, which is inefficient, by the way. All you need to do is dump the wp files in the /blog/ folder, so that you can access it with mysite.com/blog.
technobear — 2012-07-02T12:32:55-04:00 — #5
As I understand it, Elementax wants a completely separate domain (myblog.com) for the blog, not a subdomain of mysite.com.
To access it from myblog.com, you need to install the files directly into the root directory for that domain. You mentioned default.asp, which makes me think you're using a Windows server, and I have no experience there. (I have almost no experience with WP, either. ) Using Softaculous to install it via cPanel, you get a dialogue like this:
and just leave the box empty to install to the domain root.
mittineague — 2012-07-02T20:02:32-04:00 — #6
@Elementax; I can't help but wonder if by "purchased an addition domain" you mean you've paid the host for it - but - you have not paid for and registered the second domain name or set up the DNS mapping.
elementax — 2012-07-05T21:54:45-04:00 — #7
I purchased it through the hosting provider (who uses an additional site to manage it) and basically just added an if statement to the default.asp file indicating when myblog.com is typed, go to mysite.com/blog directory. That work's fine, people can access the site, but the issue is, it is basically a redirect because after I type in myblog.com, it sends me to the site, but instead of showing myblog.com in the address bar like it should, it shows myblog.com/blog, it's basically just masking mysite.com, lol
paul0130 — 2012-07-06T02:02:47-04:00 — #8
+1 to that, it will keep things simple.
elementax — 2012-07-07T00:41:45-04:00 — #9
I did end up dumping all the files into /blog/ folder as suggested, but in terms of URL, it really needs its own domain for the way I would like to brand it, hence why I don't want the simplistic mysite.com/blog
technobear — 2012-07-07T04:40:58-04:00 — #10
In that case, as I said earlier, install WordPress directly into the root directory/folder for the domain, not into a sub-directory like /blog/.
elementax — 2012-07-07T15:31:53-04:00 — #11
I'm not entirely sure I know what you mean? My current site is in the root directly right now, with it's own domain, and I'm adding an additional directory full of the wordpress files because I want it to be separate in terms of domain names, not just a mysite.com/blog setup.
technobear — 2012-07-07T15:40:55-04:00 — #12
You need to add it in the root directory of the new domain. If that's hosted as mysitedomain.com/myblogdomain.com, then put it in the folder for myblogdomain.com