Making an entrance page and an index (home) page query?

Hi All,
I've not done anything this way before but for a uni web design and development assignment, I've to firstly design a website with all the theory and how it will all come together.
Therefore, I'm wanting mine to be a little different from the generic kind and whilst I'm basing my subject matter on Tigers and the several species of, I'm creating an entrance page in fireworks that is the following;
I'm planning on sectioning up and placing hotspots around the interior of the tiger body, this will enable viewers to select and go to set pages like "about" "tiger zone" "contact" and so on.
However, I still need a traditional-ish homepage but I'm unsure how to make it that whilst people come in via the entrance page ( as above and the main url) whenever they've left this page to go in to the main homepage, they don't return via any of the main sites navigation menu / links back to this entrance page, is this possible in anyway?
I'm trying to get my own head around this and I have spent a number of hours researching this issue but I cannot find any resource that is anything like what I'm needing to do.
Thanks as always people.
Regards,

Yes, 2nd landing page will be the 'traditional' homepage.
This case, the tiger page will have to be 'index.php' so it'll load when your site is entered in a browser. Why PHP - we'll get to that in a bit.
Let us use, lets say a cookie to see if the user has already been on your index.php (which is your tiger page). If they already have, they will be taken to index2.html (the 2nd homepage - which doesn't have to be php as we aren't using any cookies/ sessions here).
Something like this should work:
<?php
// please note there is a dot prefixed in '.yourdomain.com':
setcookie('homepage', 1, time() + 365*24*60*60, '/', '.yourdomain.com');
if(!empty($_COOKIE['homepage']))
   header('Location: http://yourdomain.com/another_page.html');
   exit;
// you could add more PHP code (if you require), but ensure this patch of code is right at the top of your tiger index page
?>
This should be placed at the very top of your tiger index page which is your initial homepage when users enter your site.
This is how it works:
homepage - the defined name for this cookie
1 - enables the cookie
time() - expiration value for the cookie. The value suffixed with 'time()' is for 1 year - meaning the cookie will remain active for 1 year. If you want it to exist until the browser is closed, set it 0 like this:
setcookie('homepage', 1, 0, '/', '.yourdomain.com');
The / next to time is the areas within your domain that the cookie is available for. / denotes higher most domain path. This is useful if your index.php file (main splash page) is located within the main domain root itself. If not, if it is located somewhere like yourdomain.com/tigerhome, set that to this:
setcookie('homepage', 1, time() + 365*24*60*60, '/tigerhome/', '.yourdomain.com');
Please notice the trailing and prefix slashes for the folder value
yourdomain.com - is the main value of your domain itself. Please note the prefixed dot [.] before the yourdomain.com.
How the header works:
   header('Location: http://yourdomain.com/another_page.html');
If the cookie called 'homepage' exists, then when the user is trying to load index.php, the header condition is read by the browser first. If it is true, the user is taken to another_page.html. If not, the user is allowed to continue viewing index.php page.
The reason we have this at the very top is because when the user attempts to load up index.php page, you dont want the content to be shown before redirect happens. Hence, the header condition along dependant on the cookie is first read by the browser.
If you want custom time setting - maybe 1 day, set it to this:
setcookie('homepage', 1, time() + 1*24*60*60, '/', '.yourdomain.com');
5 hours, this:
setcookie('homepage', 1, time() + 1*5*60*60, '/', '.yourdomain.com');
And so on...
Note: The cookie will expire if the user clears browser cookies manually!
But this is the basic way of getting a cookie set for getting what you want done.
Also, I've set up a test page on my domain for you - expires in 1 year from first visit. Loads on index.php and redirects to test2.html if the cookie is already set. Try it out for yourself here.
Trust this helps.
-ST

Similar Messages

  • Turned on Mac mini and cannot get rid of the word definition page and get to home page. What's wrong?

    Turned on Mac mini and cannot get rid of the word definition page and get to my home page. What is the problem?

    Is this a screensaver?
    Whatever
    Push the power button and hold it until the mini shuts down, then start it again.

  • I accidently "x" off the download of firefox 4 before it had finished and now the home page doesn't work, i tried redownloading firefox but that didn't work is there a way i can resume the download?

    I accidently "x" off the download of firefox 4 before it had finished and now the home page doesn't work. it loads but then wont let me search from it? i tried redownloading firefox but that didn't work is there a way i can resume the previous download?

    Your More system details list show that you run the latest Firefox 4.0.1 version.<br />
    You can check that via Help > About Firefox and on the Help > Troubleshooting Information page.
    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
    See:
    * https://support.mozilla.com/kb/Server+not+found
    * https://support.mozilla.com/kb/Firewalls
    If you posted from another computer then download the full version and uninstall the currently installed version.
    Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 4.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Uninstall your current Firefox version.
    * Do not remove personal data when you uninstall the current version.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.

  • I downloaded Firefox 4.01 and now when i open a new tab, i get a blank page, instead of my home page. How do I change that? Thanks

    I downloaded Firefox 4.01 and now when i open a new tab, i get a blank page instead of my home page. How can I default to my home page when a new tab opens?

    You can do that by using an add-on such as:
    * NewTabURL - https://addons.mozilla.org/firefox/addon/newtaburl
    * New Tab Homepage - https://addons.mozilla.org/firefox/addon/new-tab-homepage
    Another way of opening the home page in a new tab is to middle click on the home button in the navigation toolbar.

  • Have Firefox home page set for Google search, but each following tab opens w/Yahoo search instead. How do I remove the Yahoo and have Google home page on every tab????

    As I said above: I Have Firefox browser home page set for Google search, but each following tab (but suddenly now it) opens w/Yahoo search instead. How do I remove the Yahoo search off the added tabs and have Google home page/ blank tab (like it used to be) on every tab????

    The new Firefox Start Page - '''about:home''' - isn't the same homepage that was used in earlier versions of Firefox - http://www.google.com/firefox There is no "setting" for the "Search Container" on the about:home "page" - in the Options UI or in about:config .
    Set that old "Mozilla Firefox Start Page" as your "homepage". <br />
    http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    Or open your Profile folder and delete the '''webappsstore.sqlite''' file and hope the "Search Container" on the about:home "page" returns to Google. When it '''''is''''' Google, the Google logo appears to the left of the "Search Container"; when the search engine there has been changed to something else, there is no logo to the left of the "Search Container" - AFAIK.

  • Javascript to Display message and return to home page

    Hi
    I have a requirement to display an acknowledgement message after a button has been pressed and return to home page.
    I created some JS and tested on a standalone button.
    <script type="text/javascript">
    function GoToHome_ack()
    alert("Authorisation Created!");
    // goto to page 1
    location.href = "f?p=&APP_ID.:1:&SESSION.";
    </script>
    Now the problem is I need to call this code after I have successfully executed 2 Processes conditionally on a Create Authorisation Button
    The only logical place I tried to place the call was on the conditional Branch URL, because I need the Processes to execute first.
    javascript:GoToHome_ack();
    Unfortunately this failed
    Anybody any suggestions ??
    Regards
    Ade

    Hi,
    Quickly what come my mind is that create blank page and place to HTML header
    <script type="text/javascript">
    alert("Authorisation Created!");
    // goto to page 1
    location.href = "f?p=&APP_ID.:1:&SESSION.";
    </script>Then branch to that page instead javascript:GoToHome_ack();
    br, Jari

  • TS1398 safari shuts down and goes to home page after 6.1.2, any body else ?

    Safari shuts down and goes to home page on some web sites after 6.1.2 install, any body else have this issue ?

    Safari shuts down and goes to home page on some web sites after 6.1.2 install, any body else have this issue ?

  • How to add an extra page to the index.html page on dreamweaver CS6?

    How to add an extra page to the index.html page on dreamweaver CS6?

    Index.html = your domain's home page.  There is only one home page per site.
    To create a new page from your index, go to File > SaveAs > filename.html.  Repeat for other site pages.  Add links on your index page that lead to other site pages.
    See  Creating your first web site in DW CC (5-part tutorial)
    https://helpx.adobe.com/dreamweaver/learn/tutorials/how-to/first-website-part1.html
    Nancy O.

  • Download them all page loads with my home page on startup, how can i get rid of the download them all page?

    firefox 15.0.1
    windows xp
    * Shockwave Flash 11.4 r402
    * Adobe PDF Plug-In For Firefox and Netscape 10.1.4
    * DRM Netscape Network Object
    * DRM Store Netscape Plugin
    * Npdsplay dll

    It sounds like you accidentally had this page added to your "home pages" - you can reset the default Firefox home page or change your home page with the instructions in this article - [[How to set the home page]]

  • When i open a new tab even i have set the start page in "blank" babylon home page keeps coming on.always on new tab.never when i open firefox for the first time. what can i do to fix the problem?

    i tried to find any babylon programs on my computer but i didnt found something.

    '' get rid of babylon toolbar and get back home page"
    see the first answer, the one from the-edmeister in
    :https://support.mozilla.com/en-US/questions/860950

  • I'm having trouble with seeing all that is shown on pages and on my email page

    I have trouble seeing all the photos and on my e-mail home page and e-mail compose page I can't see evrything

    See:
    * [[Images or animations do not show]]
    * [[Websites look wrong]]
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • How can I print just a part of the page and not the full page with Adobe Reader v 10.1.2?

    how can I print just a part of the page and not the full page with Adobe Reader v 10.1.2? I need to print a engineering print with lot of information but information is too small in letter size and I don't have a plotter.

    Two ways to print a portion of a page: zooming or using the Snapshot Tool.
    ZOOMING:
    Zoom into the area you want to print.
    Click the Print icon.
    Under "Pages to Print", make sure "Current view" is selected under "More options" (you may need to click "More options" to open it).
    If you aren't satisfied with the preview, try clicking "Fit" under the Size button.
    SNAPSHOT
    Choose Edit > Take A Snapshot.
    Drag a rectangle around the area you want to print. 
    Click the Print icon.
    Under "Pages to Print", make sure that "Selected Graphic" is selected under "More options".
    To enlarge the snapshot to fit the sheet of paper, choose "Fit" under the Size button.
    Hope this helps!

  • I noticed when I restart Firefox 4, it opens my previous tabs even I set the option "Open a blank page" and it opens blank page when I have "Show my windows and tabs from last time". Please ignore my question if you're already aware of this issue. Thanks.

    I noticed when I restart Firefox 4, it opens my previous tabs even I set the option "Open a blank page" and it opens blank page when I have "Show my windows and tabs from last time". Please ignore my question if you're already aware of this issue. Thanks.

    Your previous tabs will not re-open or be available to re-open when starting Firefox if:
    *your previous session was in Private Browsing mode; see --> http://support.mozilla.org/en-US/kb/Private+Browsing
    *you use Clear Recent History (''Firefox button > History > Clear Recent History'' or ''Tools > Clear Recent History''); see --> https://support.mozilla.org/en-US/kb/Clear%20Recent%20History#w_how-do-i-clear-my-history
    *you clear History automatically when closing Firefox; see --> https://support.mozilla.org/en-US/kb/Clear%20Recent%20History#w_how-do-i-make-firefox-clear-my-history-automatically
    NOTE: Your third-party Plugins (Add-ons > Plugins) are not in the "Application Basics" (Troubleshooting Information) in the "More system details" of your original post. Third-party Plugins are categorized separately in "Installed Plugins" under "More system details". You should review but not change the Plugins as detected automatically by the software on this forum when posting a question.
    If you problem still exists after checking the above, the problem could be caused by one or more of your Extensions or Plugins:
    *See --> [http://support.mozilla.org/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    *See --> [http://support.mozilla.org/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    *See --> [http://support.mozilla.org/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How to set cookie value in one page and retrieve in another page using setA

    How to set cookie value in one page and retrieve in another page using setActionListener?
    I have tried with following code srcpage.jspx->destpage.jspx
    srcpage.jspx
    <af:table value="#{bindings.DepartmentsView1.collectionModel}"
    var="emp" rows="#{bindings.EMPView1.rangeSize}"
    first="#{bindings.EMPView1.rangeStart}"
    emptyText="#{bindings.DepartmentsView1.viewable ? 'No rows yet.' : 'Access Denied.'}">
    <af:column sortProperty="EmployeeName" sortable="false"
    headerText="Cookie Testing">
    <af:commandLink text="#{emp.EmployeeName}" action="success">
    <af:setActionListener from="#{emp.EmployeeName}"
    to="#{cookie}"/>
    </af:commandLink>
    </af:column>
    </af:table>
    espage.jspx
    <af:outputText value="Test Cookie Value: #{cookie}"/>
    ,Here Test Cookie Value prints the following instead of its original String value
    {JSESSIONID=javax.servlet.http.Cookie@7da288, oracle.uix=javax.servlet.http.Cookie@399f62}
    I have passed employee name "Robert" to cookie in srcpage.jspx,but it prints "JSESSIONID....." instead of "Robert" in destpage.jspx
    Thanks in advance
    Kalee

    Hi,
    "cookie" is a reserved name. If you want to write to a session scope attribute called "cookie" then you have to call #{sessionScope.cookie}. If you want to use EL to set and read from cookies then you will have to use
    #{cookie.cookieName}
    Note that #{cookie} writes to and returns a map
    check this: http://www.informit.com/articles/article.aspx?p=30946&seqNum=7
    Frank

  • I am working in Pages and am trying to have the same footer on every page ?I went into View/Layout and typed in footer text  in the space but it only appears on first page and not any subsequent pages? Thank you.

    I am working in Pages on a report and trying to have the same footer on each page. I went to View/Layout, followed instructions, but the footer text only appears on the first page and not any subsequent pages? What should I do differently please? Thank you., Elisabeth

    Help is in the Pages forum.

Maybe you are looking for

  • Stop the Internal Error Message in Fireworks CS4 or CS3

    About 8 hours ago I ran into what is apparently a fairly common problem for many people using Fireworks - the error message that wouldn't allow me to save anything. Luckily, I paid attention in class long enough to at least know to save my work often

  • How do I reduce the number of audio channels in the source or export settings?

    I'. trying to export my finished edit through the "movie" setting but keep getting the message that the number of audio channels to create in the exported file must be equal to, or less than the number of channels in the source. Reduce the number of

  • Installing Windows 7 64 Bit Upgrade on a Multi-disk Mac Pro

    A lot of the information I found to help me with this issue scattered all around so I thought I'd consolidate it in one place. The situation: I wanted to install Windows 7 Home Premium 64 Bit on my boot camp partition. Windows Vista Ultimate 32 bit w

  • Problems sharing podcast with iTunes

    I'm a teacher and my students all created podcasts on different laptops. I'm trying to share them to iTunes so that I can create a DVD with all of them, but I'm running into problems. Some of them share just fine, but a couple of them share all the a

  • How to display ALV list with more than 1 structure?

    Hello everyone, I am using REUSE_ALV_LIST_DISPLAY to generate a report that displays vendor/customer items with purchases/sales total. I have 2 internal table for this. For every vendor/customer i need a total table right after, this have a different