Proper way to redirect splash page?

Hoping this is quick and simple...

Recently had a splash page built, my intention is to have general traffic from http://www.domain.com/ redirected to http://www.domain.com/splash.php; so that all subdirectories will not redirect and they will act as normal.

Modified the root level .htaccess with:

directoryindex splash.php index.php

but that effect carried to all subdirs. How do I limit this to just top level?

I also have tried a redirect like this one:

RedirectMatch 301 ^/$ http://www.domain.com/splash.php

But seems to have similar effect as the directoryindex did, when tabbing through certain modules they'll redirect to the splash.php and things get ugly from there.

 

What's the appropriate way to redirect top level to splash.php while not being penalized by search crawlers? I want the rest of my site open to guest traffic when they click through links, so using a ifMember in the code isn't really ideal.

 

Thanks in advance!

 

Skype: shawn.nelson
Quote · 26 May 2011

Make sure directoryindex settings is as index.html index.php

 

Then name your splash page as index.html. That would do the trick.

----
Quote · 26 May 2011

 if it is an index.html file that would work, but if you are using php for your landing/splash, then you can rename index.php on dolphin to index2.php

 

the first page to load would be index.php, and only a click through would load index2.php

Make sure directoryindex settings is as index.html index.php

 

Then name your splash page as index.html. That would do the trick.

 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 26 May 2011

Seriously didn't think it was going to be that easy, had a fear that there were more dependencies on the original index.php than just the navigation link. Gave the renaming of php files a shot and it works - Thanks for the responses!

 

 if it is an index.html file that would work, but if you are using php for your landing/splash, then you can rename index.php on dolphin to index2.php

 

the first page to load would be index.php, and only a click through would load index2.php

Make sure directoryindex settings is as index.html index.php

 

Then name your splash page as index.html. That would do the trick.

 

 

Skype: shawn.nelson
Quote · 26 May 2011

Thought I was out of the water on this one, but I'm finding some slight issues with the relabeled (original) index.php...

index.php has been renamed to home.php, the navigation link was adjusted appropriately and everything is great there. splash.php is now index.php, and it all works as expected - great!

The problem? Certain module blocks on home.php will redirect to index.php when clicking their associated tab. An example: Members block, when attempting to click featured or online tabs it will open up index.php and ultimately reroute back to member.php.

Makes sense, the link it's trying to follow is http://www.mywebsite.com/index.php?type=content_activity. It seems apparent that I need to add some mod rewrite for index.php?whatever to poing to home.php?whatever. Can anyone provide me with an example that would work here? Everything I try wildcards index.php and redirects it completely - rendering the splash page non existent anymore :(

* I thought about modifying the code and changing the index.php urls out manually, but there are a few different areas on my site that are now prone to this (not just my home.php since I copied the module blocks to other pages).

 

I appreciate any help I can get here!

Skype: shawn.nelson
Quote · 14 Jun 2011

line 7 splash.php      Redirect($site['url'].'member.php');  

is that causing you the problem ?

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 14 Jun 2011

 

line 7 splash.php      Redirect($site['url'].'member.php');  

is that causing you the problem ?

 

In technical terms, I suppose so - but I liked the way the splash.php you built operates & redirects to member.php if they're logged in. I didn't see it as a flaw with what you produced, so I didn't want to bother you with it Laughing.

 

Skype: shawn.nelson
Quote · 14 Jun 2011

Cool   just making sure.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 14 Jun 2011

Figured out the redirect in htaccess:

RewriteRule ^index.php(/)?$  /home.php$1 [R,L]

 

But now when clicked, it will reload the ENTIRE home.php page within the block that the tab was clicked, sometimes with different results. Not looking like this is the proper way to do it anymore...

 

I am interested if anyone can provide me with some insight on how to hardcode the index.php?MembersMode=top style links into home.php?MembersMode=top? I did a quick search through the core files and couldn't find anything too obvious yet.

Skype: shawn.nelson
Quote · 14 Jun 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.