|
![]() |
![]() |
![]() |
![]() |
![]() |
|
![]() |
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
![]() |
#1 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
warning.html is your warning page. Easy enough to put that in as a static file as wordpress only answers if there is no actual file present.
main.html is your main page -- this is where the problem starts. Since that page doesn't exist, wordpress is going to handle it and look for main.html as a permalink, which it won't find, which means wordpress will show a 404 page. Since the 404 page hands an error 404, even if you customize your 404 template to look right, google will see the 404 and remove it. Rewrites do literally nothing unless you want to do a redirect. If you don't to the rewrite, you will find that your internal links on the blog will not work correctly. Even going to http://yourblog.com/index.php, wordpress redirects it to http://yourblog.com/ To have the blog answer as main.html and work without a redirect, I'm not sure. Since main.html is an invalid permalink structure, the main.html portion will be the difficult part. With some simple experimentation, I wasn't able to get it to do what you wanted. So, if you wanted to have warning.html, you can create that file and it will be served. If you do DirectoryIndex to make the warning.html your primary, your blog won't show up properly if you use permalinks. I think this might be one of those situations where dropping it in place MIGHT prove difficult. Can you 301 the main.html to your main blog page? or is it 100% set in stone that you have to have main.html?
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#2 |
Oh no, I'm sweating like Roger Ebert
|
For the record, it's easy to setup a page within WP that is your default front page instead of the normal blog page. The best instructions I've found is here http://www.richandstephsipe.com/word...atic-homepage/
What I do is I take page.php, rename it to whatever, home, welcome, etc. and then edit it to look the way I want. I call mine home-page-template.php. You'll need to add the following code to the top of the template as well Code:
<?php /* Template Name: Home Page Template */ ?> Then under settings/reading set the front page to the page you just created. Now create another new page, call it anything you want but this will be your blog. Under attributes/templates select default template. Then go back to settings/reading and set this page as the page for post pages. If you want to see an example.... http://obsessedgirls.com/ |
![]() |
![]() |
![]() |
#3 |
Hey, can you take the wheel for a second, I have to scratch my self in two places at once
Join Date: Aug 2003
Posts: 186
|
That is a good solution. Walrus.
One that I use is simply to put the blog in a directory and put a warning page on the root. There are several advantages to this, one of which is you have two distinct parts of the domain on which to do link exchanges. It also provides another page on which to exchange good links. Following is one of the sites I do that on. It has an SEO landing page in front, and a link to the blog at the bottom. Older Women R Us I intend to add a small review section in another subdirectory. I have also experimented with having the blog on a sub-domain and that has other advantages and disadvantages, but really does not address the core root issue of a warning page. Last edited by whitey; 2009-10-21 at 05:30 AM.. |
![]() |
![]() |
![]() |
|
|