Note that there are some explanatory texts on larger screens.

plurals
  1. POLinks to web pages that are php includes goes back to home page
    primarykey
    data
    text
    <p>I don't profess to be any good at php, so those who are expert please don't bash me for my noob approach. I am trying to learn. </p> <p>Some time back, I had someone show me how to break up parts of my web pages and write them as includes so that I wasn't having headers, footers, and navigation repainting for every page. As of yesterday morning, my pages were loading fine, and have been for many years now. However, something seems to have gone wrong, possibly on my server, and now all pages go to home page. </p> <p>I have my pages set up as such:</p> <p>index.php </p> <pre><code>&lt;?php if (! isset($HTTP_GET_VARS['content']) || ! $HTTP_GET_VARS['content']){ $content="squeeze"; } else $content=$HTTP_GET_VARS['content']; //1 if ($content == "do-you-have-success-habits"){ $page_title="Do You Have Success Habits?"; $keywords="Booking Agent Book, Music Business Career Development Information, Performing Arts Entertainment Information"; $desc="Music Business Booking Management artist career development for musicians, performing artists, agents and managers"; $style="../scripts/style.css"; $popupjs="none"; $storbutnjs="none"; $retreatjs="none"; $rolloverjs="none"; $readform_chkjs="none"; $logo="req-files/logo.html"; $navbar="req-files/navbar.html"; $sidebar="req-files/sidebar.html"; $main="weekly/2013/do-you-have-success-habits.html"; } include ("req-files/head.html"); include ($logo); include ($navbar); include ($sidebar); include ($main); include ("req-files/footer.html"); ?&gt; </code></pre> <p>This is a chopped down version of what I have. The whole index.php has all pages written like this, but it also contains includes to other php pages. There is so much content to this site that I've had to build php pages with like informations within one page... I.E. all affiliates would go into affiliates.php and then included into my index.php as such.</p> <pre><code>// INCLUDE AFFILIATES HERE include ("affiliates.php"); </code></pre> <p>I'm hoping this is enough information to help me troubleshoot my problem.</p> <p>A sample of my pieces are like this header file. My variables are in the pieces.</p> <p>head.html</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;&lt;?php print $page_title ?&gt;&lt;/title&gt; &lt;meta http-equiv="Content-type" content="text/html; charset=utf-8" /&gt; &lt;meta name="author" content=" " /&gt; &lt;meta name="keywords" content="&lt;?php print $keywords ?&gt;" /&gt; &lt;meta name="description" content="&lt;?php print $desc ?&gt;" /&gt; &lt;meta name="copyright" content="2006-2013" /&gt; &lt;link rel="stylesheet" type="text/css" href="&lt;?php print $style ?&gt;" /&gt; &lt;link href="scripts/twoColLiqLtHdr.css" rel="stylesheet" type="text/css" /&gt;&lt;!--[if IE]&gt; &lt;style type="text/css"&gt; /* place css fixes for all versions of IE in this conditional comment */ .twoColLiqLtHdr #sidebar1 { padding-top: 30px; } .twoColLiqLtHdr #mainContent { zoom: 1; padding-top: 15px; } /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */ &lt;/style&gt; &lt;![endif]--&gt; &lt;link rel="stylesheet" type="text/css" href="scripts/style.css" /&gt; &lt;script src="scripts/stuHover.js" type="text/javascript"&gt;&lt;/script&gt; &lt;link href="scripts/dropdown_menu.css" rel="stylesheet" type="text/css" /&gt; &lt;link rel="shortcut icon" href="/favicon.png" /&gt; &lt;?php if ($popupjs != "none") { print("&lt;script src=\"${popupjs}\"&gt;"); print("&lt;/script&gt;\n"); } if ($storbutnjs != "none") { print(" &lt;script src=\"${storbutnjs}\"&gt;"); print("&lt;/script&gt;\n"); } if ($retreatjs != "none") { print(" &lt;script src=\"${retreatjs}\"&gt;"); print("&lt;/script&gt;\n"); } if ($rolloverjs != "none") { print(" &lt;script src=\"${rolloverjs}\"&gt;"); print("&lt;/script&gt;\n"); } if ($readform_chkjs != "none") { print(" &lt;script src=\"${readform_chkjs}\"&gt;"); print("&lt;/script&gt;\n"); } ?&gt; &lt;/head&gt; </code></pre> <p>As stated before, I am inexperienced with php. So, I'm having trouble understanding why my pages linked in my nav are going to home (squeeze) page. </p> <p>Now, my hosting tech support states that it could be deprecated code that is causing this to fail. They are migrating my site, probably to a previous version of php. But I need to know where to begin fixing this. I hope it is a simple fix because this site is huge! </p> <p>Thank you for your patience and your help. </p> <p>Heidi</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload