wordpress question

Marketcake

God of Leisure
Dec 6, 2009
450
8
0
Paradise
I have a wordpress site that i need a splash page for.

I have tried putting index.html in the root folder so that when they go to the domain they see the splash page first (index.html is displayed before same-named php files), and then i had the link set to domain.com/index.php to 'enter the site' (the wordpress version)

Fucked thing is it just goes back to index.html even though its linked right to index.php

Does anyone know how I would fix this in htaccess or what id' have to do?

the other option which is a lot shittier is i got some plugin that uses javascript cookies for a splash page. its super janky though cause it sets the cookie but they have to click the button link twice so the cookie reloads the page... second i dont know how to set it for 30 mins instead of x amount of days. it needs to show up every time they visit the site (but cant expire instantly because then when they hit the 'home' button on the site it will just go back to the splash page)

durrrr
any help would rawk
 


mainly cause its one of my clients with a huge complicated wordpress site already developed. i cant be arsed to move his entire site over and then back again

he gets tons of people going to his site daily. hes a dj and this is for the top 100 things.
 
they need a completely black page with one huge image that says VOTE and a link that says enter site.

if i made a static front page then it would look just like the theme theyre using with a tiny content area

they also already have a static front page with lots of content on it.
 
bowdown.gif


i think thats just what i need... reading.
 
I was about to post the hierarchy link but seems MH beat me to it.

Work with it - and post here if you get stuck - I will be online for a good while.
 
okay im baffled. fuckall. this is so annoying for what theyre paying me. i accepted cause i thought i could do it in 5 minutes. never that easy

i put home.php inside the theme directory and it straight up deosnt do shit. i dont know how the hierarchy isnt working

i tried some other super janky method.. if i put home.php in the root directory and copy the content from index.php, then i can LINK to it just fine (in the menu, and from the splash page) which is a step farther than when i called it index.html (then it would just keep vieweing itself)... except now when you view home.php (with dup content from index.php) it just says there are no posts to display, so apparently it wont work unless its called index.php

garrhhhhhh
 
Alrighty then... the solution worked for the OP. It's got to do with the change in the canonical URL thing of wordpress. Here's the solution for everyone else who's looking for something similar..

Simply create your Squeeze Page in HTML - name it default.html and have it uploaded to your website's root.

Now open file wp-includes/canonical.php

On line 60 find
Code:
// $original['path'] = preg_replace('|/index\.php$|', '/',  $original['path']);
Remove the two trailing slashes at the start

Again on line 183 find
Code:
// trailing /index.php 
$redirect['path'] = preg_replace('|/index.php/*?$|', '/', $redirect['path']);

Replace with

Code:
// trailing /index.php/ 
$redirect['path'] = preg_replace('|/index.php/$|', '/',  $redirect['path']);

Now when you click on domain.com it will take you to your splash page - but domain.com/index.php will take you to your wordpress blog.

Let me know how it works.
 
PS.. the reason home.php didnt work is because when i created the wordpress theme for my friend, he made a new theme, copied mine into it, renamed it, and then used that one.. but left the old one in there. so i saw the theme folder with the same name that i build it from, but that wasnt even the active theme. lol
 
PS.. the reason home.php didnt work is because when i created the wordpress theme for my friend, he made a new theme, copied mine into it, renamed it, and then used that one.. but left the old one in there. so i saw the theme folder with the same name that i build it from, but that wasnt even the active theme. lol

lolol ...so did u get it to work?
 
Glad you got it working, though if the site gets / intends to get any search engine traffic i would go with a full screen javascript powered iframe overlay.

Thickbox can do this with minimal modification.