Welcome to WebmasterWorld Guest from 54.234.38.8

Forum Moderators: ergophobe

Message Too Old, No Replies

static front page not loading properly in wordpress 2.9.2

     
4:09 pm on Jun 3, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Sept 23, 2008
posts: 104
votes: 0


Hello
I have a static home page created in the dashboard with the name of Home. Moreover, I have another file called page-home.php created under the current them. I did not have a static home page but from now on, I want to have it.

When I select the page home in settings->reading as static home page, then I do not see any more the content stored in page-home.php and instead I just see the content displayed in the dashboard for the page home. Since I want to leave empty the dashboard home page's content and fill its content by means of the page-home.php file, then the result is that whenever you go to www.domainx.com, you just see an empty blog's home page. Is there any way to tell wordpress to check page-home.php instead of reading the content from the one written by means of the dashboard?

Thanks
4:29 pm on June 3, 2010 (gmt 0)

Moderator This Forum

WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 25, 2002
posts:8127
votes: 88


I don't know why it's empty, but if I understand you correctly, you'll need to use mod_rewrite and route requests accordingly. In my experience, this becomes a headache if you're trying to get WP to handle everything but the home page (no problem if you want WP to handle everything but a sub directory).

Basically, you want to do the following in your .htaccess or httpd.conf

If the request is for (www\.)?example\.com/? rewrite to page-home.php
If the request is for page-home.php do nothing
If the request is for anything else, rewrite as usual to index.php

So all the checking gets done before WP gets involved at all.

If at all possible, though, look for a plugin that does what you want or figure out a way to use the WP static home page functionality.
12:53 pm on June 4, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 31, 2002
posts:7575
votes: 0


If you're using the WP interface to select the static home page then the page you choose needs to have been created by WP. The only way around this is by manually editing htacces as suggested. But why not take the content out of page-home.php and place it in the WP Page home?
2:25 pm on June 4, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Sept 23, 2008
posts: 104
votes: 0


Now it is solved. I did not do anything. I think it might have to do with a lot of accesses to the same website during a brief period of time. Anyways, I was told by my hosting provider that my IP might have been banned. According to their information I could be banned if I do more than 2000 visits to my website in less than 24 hours.
They also told me to do this:
1. Wait 24 hours for the IP ban to go away
2. Contact your ISP to change your IP for you
3. Restart your router or modem which may change your IP. Please note that this may not change your IP and in this case you will have to choose another option.

A question for you guys,
Do you know any public proxy server which I could use for free with an FTP program like FTPZilla or something like that in case I have this problem again?

Thanks
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members