Welcome to WebmasterWorld Guest from 54.158.36.59

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)

5+ Year Member



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 Jun 3, 2010 (gmt 0)

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



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 Jun 4, 2010 (gmt 0)

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



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 Jun 4, 2010 (gmt 0)

5+ Year Member



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
 

Featured Threads

Hot Threads This Week

Hot Threads This Month