I want to temporarily switch my front...
I have a website for a non profit and my normal index page introduces our program. For 2 or 3 months of the year, we do the majority of our fundraising and during that time, I would like the first page of my website to be our Special Events tab. I have tried several times to accomplish this (it was easy in VSD). I can get the Special Events page to come up first, but then the Home page doesn't work anymore. Any suggestions? I have tried searching for answers, but I'm obviously not using the correct search words.
http://ourmothershousedov.org
http://ourmothershousedov.org
Use a php redirect. You can adjust the date span that you want to go to the special events page instead of the home page. Place it at the very top of you home page before any other code.
You'll need to adjust your server to parse php in html. This only takes an adjustent of your .htaccess page by adding this line to it.
<?php
$now = new DateTime();
$startdate = new DateTime("2017-10-24");
$enddate = new DateTime("2017-11-26");
if($startdate <= $now && $now <= $enddate) {
header("Location: http://ourmothershousedov.org/special-events.html");
die();
}else{
header("Location: http://ourmothershousedov.org/index.html");
die();
}
?>
$now = new DateTime();
$startdate = new DateTime("2017-10-24");
$enddate = new DateTime("2017-11-26");
if($startdate <= $now && $now <= $enddate) {
header("Location: http://ourmothershousedov.org/special-events.html");
die();
}else{
header("Location: http://ourmothershousedov.org/index.html");
die();
}
?>
You'll need to adjust your server to parse php in html. This only takes an adjustent of your .htaccess page by adding this line to it.
RemoveHandler .html .htm
AddType application/x-httpd-php .php .html .htm
AddType application/x-httpd-php .php .html .htm
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Might also need to include your timezone setting to prevent PHP spitting out warnings to the error log.
example:
date_default_timezone_set('US/Eastern');
example:
date_default_timezone_set('US/Eastern');
But I'm using RSD and I have no idea how or where to insert HTML code. HELP!!!
Insert it at the top off your page before any other code.
So it will go above this line on your RSD home page.
So it will go above this line on your RSD home page.
<!DOCTYPE html>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
You have to edit the file after it is rendered from RSD.
A bit of a pain. I've requested CC to look at allowing stuff to be added in RSD before the <html> tag, so everything can be setup within RSD.
A bit of a pain. I've requested CC to look at allowing stuff to be added in RSD before the <html> tag, so everything can be setup within RSD.
Hi Kathy,
This works for me. Important step - duplicate the index page and the special-events page. That way you have a copy of the originals. In "Manage Project" (Ctrl + Shif+ I) I delete Index. Then I double click on special-events_1 and rename it Index. That will then be your front page. Keep your original special-events.html to avoid broken links on your other pages.
Kind regards,
Anne
This works for me. Important step - duplicate the index page and the special-events page. That way you have a copy of the originals. In "Manage Project" (Ctrl + Shif+ I) I delete Index. Then I double click on special-events_1 and rename it Index. That will then be your front page. Keep your original special-events.html to avoid broken links on your other pages.
Kind regards,
Anne
titanium-implant-jewelry.com
jewelry-tutorials.com
drill-straight-tools.com
jewelry-tutorials.com
drill-straight-tools.com
Thanks Anne, I took your suggestion and it works. Unfortunately, I lose my normal Home page while I have the Special Events page up. I can live with that, was just hoping to start with Special Events and then if people clicked on Home, they would get the normal Home page. I am happy that I don't have buttons that go nowhere though, so thank you!!!
Also, thanks Geoff and Eric for your help. I will save a test copy of my site and fool with your suggestions... just not that confident with html.
Also, thanks Geoff and Eric for your help. I will save a test copy of my site and fool with your suggestions... just not that confident with html.
What about
1. in all pages, pointing the Home button link to home.html;
2. duplicating the index.html page, and renaming one of the copies as home.html;
3. during the season when it's desirable to start off with the Special Events page, auto-diverting to that page from index.html;
4. removing the auto-divert for the rest of the year?
The auto-divert would be by putting the following in the Head box in the Page Settings panel of RSD
It would of course be necessary to change the above to correspond with whatever the special-events page is called.
Frank
1. in all pages, pointing the Home button link to home.html;
2. duplicating the index.html page, and renaming one of the copies as home.html;
3. during the season when it's desirable to start off with the Special Events page, auto-diverting to that page from index.html;
4. removing the auto-divert for the rest of the year?
The auto-divert would be by putting the following in the Head box in the Page Settings panel of RSD
<meta http-equiv="Refresh" content="0; url=http://ourmothershousedov.org/special-events.html">
.It would of course be necessary to change the above to correspond with whatever the special-events page is called.
Frank
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.