Wordpress Problem...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nonso
Forum Newbie
Posts: 12
Joined: Sat Mar 14, 2009 10:58 pm

Wordpress Problem...

Post by nonso »

A client of mine wants me to integrate their existing site into Wordpress but he is really SEO conscious and wants WP's index page to exists on the root folder as blog.php and WP's core files to have their own sub-folder. I have everything set up the way it should but whenever I click to read an article it gives me a 404 error.

The site is here.

I am pretty sure the server runs Windows Server 2008 which I am totally not familiar with. WP was installed on a MySQL DB. Apache 2.2 is installed on the server.

Any ideas?
nonso
Forum Newbie
Posts: 12
Joined: Sat Mar 14, 2009 10:58 pm

Re: Wordpress Problem...

Post by nonso »

Any one?
User avatar
danielwalters6
Forum Commoner
Posts: 31
Joined: Fri May 11, 2007 1:17 pm
Location: Cambridge, England, UK

Re: Wordpress Problem...

Post by danielwalters6 »

So you want to leave the blog in the site's root directory?
But want the contents all hidden away somewhere?

http://codex.wordpress.org/Giving_WordP ... _Directory

Hope that helps.
D.
nonso
Forum Newbie
Posts: 12
Joined: Sat Mar 14, 2009 10:58 pm

Re: Wordpress Problem...

Post by nonso »

That is what I have done. I renamed WP's index.php page to blog.php (see link) but I don't think WP likes being off the index page.
User avatar
danielwalters6
Forum Commoner
Posts: 31
Joined: Fri May 11, 2007 1:17 pm
Location: Cambridge, England, UK

Re: Wordpress Problem...

Post by danielwalters6 »

nonso wrote:That is what I have done. I renamed WP's index.php page to blog.php (see link) but I don't think WP likes being off the index page.
No, I think that the wordpress index.php file, HAS to remain as index.php - It's hard coded into many of the plugins/themes/corewpfiles.

Can you not put the blog on

domain.com/blog = When browsers look for /blog they will have index.php returned by default, not displaying index.php to the user at all...

You can, using the link I provided earlier, then move the installation of wordpress to anywhere on the server.
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Wordpress Problem...

Post by McInfo »

I'm not sure if this is a viable solution for what you want do, but just in case...

Apache 2.2 Docs: Mapping URLs to Filesystem Locations

Edit: This post was recovered from search engine cache.
Post Reply