I'm one of those people that runs their entire site on
wordpress. I also own a domain, and putting the wordpress
files into the root of my domain would be a huge security
hazard, so I had no choice but to put it in a
/wordpress directory.
This became a problem, however, when my index page
was empty, and my ACTUAL site was
/wordpress/index.php. So when people came
to my site, there was nothing in index.
There were two solutions to this problem:
a) Make a splash page (which i find to be pointless and
a waste of time)
b) Redirect in 0 seconds.
I chose the redirect, but it was kind of annoying and sometimes
took too long and people saw my secret. (not that big
a deal, but still).
I wanted to find a way to index my WP page. I at first wanted
to use an include, but it didn't work because of unknown
functions (/wp.blogheader). So here's how I did it.
First of all, you need to log in to your Worpdress
Admin panel and go to Options, General.
You will need to edit your Blog Address. As of now, your
WordPress adress (URI) and your
Blog Address (URI) are the same address. Well,
not any more.
Change Blog Address to the root of your domain.
For example, my Blog Address was
http://www.fractured-beauty.net/wordpress,
then I changed it to simply http://www.fractured-beauty.net.
Hit Update Options and continue.
What exactly did I just do?
Wordpress URL is the url of your actual blog, or the directory
that you installed Wordpress in.
Blogaddress URL is the url of where your blog is, most of
the time, it should be the same thing. This is the URL they
take you to when you click View Site at the top
of your Admin bar.
Now that you have changed the second option, you
are now saying that your actual blog is located at the
index of your domain, and not in the wordpress folder.
You're not done yet.
Open up your index.php (or make one if you don't
have it) in your root folder. Enter the code
below:
That's all there is to it. Save your index file and test it out.
Your wordpress blog should now show up in your index!
|