Skip to content

Commit 9bca11d

Browse files
committed
Merge branch 'master' into prod
2 parents 4b9bb96 + b39b7e9 commit 9bca11d

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

index.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,24 @@
44
ini_set('display_errors', 0);
55

66
$uri = $_SERVER['REQUEST_URI'];
7+
//echo "uri is: ".$uri."<br>";
78
$base = dirname($_SERVER['SCRIPT_NAME']);
9+
//echo "base is: ".$base."<br>";
810
$path = substr($uri, strlen($base));
11+
//echo "path is: ".$path."<br>";
912
$parsedUrl = parse_url(basename($path));
13+
//echo "parsedUrl is: ";
14+
//var_dump ($parsedUrl);
15+
//echo "<br>";
1016
$requestedPage = $parsedUrl['path'];
17+
//echo "requestedPage is: ".$requestedPage."<br>";
1118

1219
if (strtolower(substr($requestedPage, -5)) == '.html') {
13-
header('Location: ' . $base . (substr($base, -1) == '/' ? '' : '/') . substr($requestedPage, 0, -5), true, 301);
20+
header('Location: ' . $base . (substr($base, -1) == '/' ? '' : '/') . substr($requestedPage, 0, -5), true, 302);
1421
exit;
1522
}
1623
if (strtolower($requestedPage) == 'home' || strtolower($requestedPage) == 'index' || strtolower($requestedPage) == 'index.php') {
17-
header('Location: ' . $base . (substr($base, -1) == '/' ? '' : '/'), true, 301);
24+
header('Location: ' . $base . (substr($base, -1) == '/' ? '' : '/'), true, 302);
1825
exit;
1926
}
2027
if (!$requestedPage) {

resources/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h3>Nashville,<span>&nbsp;</span>TN</h3>
2727
</div>
2828
<div class="section">
2929
<p>Inspired by conferences like Webstock and Brooklyn Beta, we want to make a friendly conference for us. Together with our friends and peers, we aim to inspire you to make great things with PHP.</p>
30-
<p><a href="subscribe">Subscribe to our mailing list</a>, and we'll keep you updated on all the latest PHP Community Conference news and information.</p>
30+
<p><a href="http://phpcon.eventbrite.com">Register now for only $350</a>. You'll receive: <ul><li>Two tutorials on the 21st</li><li>A full day of <a href="speakers">excellent speakers</a> on the 22nd</li><li>All your food, snacks, and conversation free</li></ol></p>
3131
</div>
3232

3333
<div class="sectionWide">

0 commit comments

Comments
 (0)