<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Part 1. Dynamic SEO tags for your Flash site using PHP and SWFAddress</title>
	<atom:link href="http://www.scottking.com.au/blog/2008/06/php-seo-tags-for-flash-sites/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scottking.com.au/blog/2008/06/php-seo-tags-for-flash-sites/</link>
	<description></description>
	<lastBuildDate>Thu, 20 May 2010 03:12:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Scott King</title>
		<link>http://www.scottking.com.au/blog/2008/06/php-seo-tags-for-flash-sites/comment-page-1/#comment-30</link>
		<dc:creator>Scott King</dc:creator>
		<pubDate>Fri, 04 Sep 2009 14:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottking.com.au/blog/?p=53#comment-30</guid>
		<description>Hi Hoolagon,

Good stuff, great to hear - PHP is a great little language. Once you get familiar with it you should look into a PHP framework such as CodeIgniter.

As for Google, you&#039;ll just need to make sure you&#039;re not returning any 404 response codes in your header. (You can eaisly change your headers using PHP). I couldn&#039;t get to your site to check for you (it appears to be down). Also make sure you have full links such as http://www.exmaple.com/portfolio/#portfolio in your sitemap.xml and you should also have a HTML Navigation Menu / Sitemap in the Flash alternate content in the embed DIV and again use full URL&#039;s here.

That should get Google properly indexing your site and deeplinking to the correct pages in your Flash movie.

Let me know how you go.</description>
		<content:encoded><![CDATA[<p>Hi Hoolagon,</p>
<p>Good stuff, great to hear &#8211; PHP is a great little language. Once you get familiar with it you should look into a PHP framework such as CodeIgniter.</p>
<p>As for Google, you&#8217;ll just need to make sure you&#8217;re not returning any 404 response codes in your header. (You can eaisly change your headers using PHP). I couldn&#8217;t get to your site to check for you (it appears to be down). Also make sure you have full links such as <a href="http://www.exmaple.com/portfolio/#portfolio" rel="nofollow">http://www.exmaple.com/portfolio/#portfolio</a> in your sitemap.xml and you should also have a HTML Navigation Menu / Sitemap in the Flash alternate content in the embed DIV and again use full URL&#8217;s here.</p>
<p>That should get Google properly indexing your site and deeplinking to the correct pages in your Flash movie.</p>
<p>Let me know how you go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hoolagon</title>
		<link>http://www.scottking.com.au/blog/2008/06/php-seo-tags-for-flash-sites/comment-page-1/#comment-29</link>
		<dc:creator>hoolagon</dc:creator>
		<pubDate>Fri, 04 Sep 2009 11:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottking.com.au/blog/?p=53#comment-29</guid>
		<description>Hi Scott,

Thanks to you I&#039;ve been getting into learning php which makes content creation and xhtml coding a peice of cake. One thing I have noticed however is that the googlebot does not index the pages created within the 404 php file, but instead it marks them as 404 unavailable. So for example, of the 17 pages I submitted via the sitemap.xml only 1 has been indexed, with the others all throwing crawl errors. 
This means doing a google search for something as specific as www.mydomain.com/portfolio does not find the submitted page www.mydomain.com/portfolio because it is not indexed.

Maybe we need to actually create these pages rather than simply spoof them with the 404. What do you think?</description>
		<content:encoded><![CDATA[<p>Hi Scott,</p>
<p>Thanks to you I&#8217;ve been getting into learning php which makes content creation and xhtml coding a peice of cake. One thing I have noticed however is that the googlebot does not index the pages created within the 404 php file, but instead it marks them as 404 unavailable. So for example, of the 17 pages I submitted via the sitemap.xml only 1 has been indexed, with the others all throwing crawl errors.<br />
This means doing a google search for something as specific as <a href="http://www.mydomain.com/portfolio" rel="nofollow">http://www.mydomain.com/portfolio</a> does not find the submitted page <a href="http://www.mydomain.com/portfolio" rel="nofollow">http://www.mydomain.com/portfolio</a> because it is not indexed.</p>
<p>Maybe we need to actually create these pages rather than simply spoof them with the 404. What do you think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott King</title>
		<link>http://www.scottking.com.au/blog/2008/06/php-seo-tags-for-flash-sites/comment-page-1/#comment-26</link>
		<dc:creator>Scott King</dc:creator>
		<pubDate>Fri, 21 Aug 2009 01:24:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottking.com.au/blog/?p=53#comment-26</guid>
		<description>Hi Julian,

Great work, interesting find, obviously there are some small differences in the way Apache and IIS handle their header info but it&#039;s good to know the script also works on Apache with a small mod.

Enjoy your SEO &amp; Deeplinking.</description>
		<content:encoded><![CDATA[<p>Hi Julian,</p>
<p>Great work, interesting find, obviously there are some small differences in the way Apache and IIS handle their header info but it&#8217;s good to know the script also works on Apache with a small mod.</p>
<p>Enjoy your SEO &#038; Deeplinking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hoolagon</title>
		<link>http://www.scottking.com.au/blog/2008/06/php-seo-tags-for-flash-sites/comment-page-1/#comment-25</link>
		<dc:creator>hoolagon</dc:creator>
		<pubDate>Thu, 20 Aug 2009 10:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottking.com.au/blog/?p=53#comment-25</guid>
		<description>function getDeepLink( $deepLink ){
	$deepLink = substr($deepLink,strrpos($deepLink,&quot;:80&quot;)+3);
	if(strrpos($deepLink,&quot;/&quot;)==strlen($deepLink)-1){
		$deepLink = substr($deepLink,0,strlen($deepLink)-1);
	}
	$deepLink = substr($deepLink,strrpos($deepLink,&quot;/&quot;));
	$exclusions = array(&quot;.html&quot;, &quot;/&quot;,&quot;index.php&quot;, &quot;.htm&quot;); // URL extension exclusion list
	$deepLink = str_replace($exclusions, &quot;&quot;, $deepLink); // remove extensions eg: &quot;about.html&quot; becomes &quot;about&quot;

	return $deepLink;
}

function curPageURL() {
	$pageURL = &#039;http&#039;;
	if ($_SERVER[&quot;HTTPS&quot;] == &quot;on&quot;) {$pageURL .= &quot;s&quot;;}
		$pageURL .= &quot;://&quot;;
	if ($_SERVER[&quot;SERVER_PORT&quot;] != &quot;80&quot;) {
		$pageURL .= $_SERVER[&quot;SERVER_NAME&quot;].&quot;:&quot;.$_SERVER[&quot;SERVER_PORT&quot;].$_SERVER[&quot;REQUEST_URI&quot;];
	} else {
		$pageURL .= $_SERVER[&quot;SERVER_NAME&quot;].$_SERVER[&quot;REQUEST_URI&quot;];
	}
	return $pageURL;
}

$curPageURL = curPageURL( );
$requestedDeepLink = getDeepLink( $curPageURL );

$title=&quot;Home&quot;;
$description=&quot;Meta Tag Description for Home&quot;;
$keywords=&quot;Meta Tag Keywords for Home&quot;;
$inPageContent=&quot;Oops 404&quot;;
$noscript=&quot;Some altenate content for non-javscript users on Home&quot;;</description>
		<content:encoded><![CDATA[<p>function getDeepLink( $deepLink ){<br />
	$deepLink = substr($deepLink,strrpos($deepLink,&#8221;:80&#8243;)+3);<br />
	if(strrpos($deepLink,&#8221;/&#8221;)==strlen($deepLink)-1){<br />
		$deepLink = substr($deepLink,0,strlen($deepLink)-1);<br />
	}<br />
	$deepLink = substr($deepLink,strrpos($deepLink,&#8221;/&#8221;));<br />
	$exclusions = array(&#8220;.html&#8221;, &#8220;/&#8221;,&#8221;index.php&#8221;, &#8220;.htm&#8221;); // URL extension exclusion list<br />
	$deepLink = str_replace($exclusions, &#8220;&#8221;, $deepLink); // remove extensions eg: &#8220;about.html&#8221; becomes &#8220;about&#8221;</p>
<p>	return $deepLink;<br />
}</p>
<p>function curPageURL() {<br />
	$pageURL = &#8216;http&#8217;;<br />
	if ($_SERVER["HTTPS"] == &#8220;on&#8221;) {$pageURL .= &#8220;s&#8221;;}<br />
		$pageURL .= &#8220;://&#8221;;<br />
	if ($_SERVER["SERVER_PORT"] != &#8220;80&#8243;) {<br />
		$pageURL .= $_SERVER["SERVER_NAME"].&#8221;:&#8221;.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];<br />
	} else {<br />
		$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];<br />
	}<br />
	return $pageURL;<br />
}</p>
<p>$curPageURL = curPageURL( );<br />
$requestedDeepLink = getDeepLink( $curPageURL );</p>
<p>$title=&#8221;Home&#8221;;<br />
$description=&#8221;Meta Tag Description for Home&#8221;;<br />
$keywords=&#8221;Meta Tag Keywords for Home&#8221;;<br />
$inPageContent=&#8221;Oops 404&#8243;;<br />
$noscript=&#8221;Some altenate content for non-javscript users on Home&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hoolagon</title>
		<link>http://www.scottking.com.au/blog/2008/06/php-seo-tags-for-flash-sites/comment-page-1/#comment-24</link>
		<dc:creator>hoolagon</dc:creator>
		<pubDate>Thu, 20 Aug 2009 10:19:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottking.com.au/blog/?p=53#comment-24</guid>
		<description>Hi Scott,

I&#039;ve got it working now. For some reason the line $requestedDeepLink=getDeepLink(); was not working properly. All I did in the end was to split this line into 2 steps. 
$curPageURL = curPageURL( );
$requestedDeepLink = getDeepLink( $curPageURL );

The full code is:

</description>
		<content:encoded><![CDATA[<p>Hi Scott,</p>
<p>I&#8217;ve got it working now. For some reason the line $requestedDeepLink=getDeepLink(); was not working properly. All I did in the end was to split this line into 2 steps.<br />
$curPageURL = curPageURL( );<br />
$requestedDeepLink = getDeepLink( $curPageURL );</p>
<p>The full code is:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hoolagon</title>
		<link>http://www.scottking.com.au/blog/2008/06/php-seo-tags-for-flash-sites/comment-page-1/#comment-23</link>
		<dc:creator>hoolagon</dc:creator>
		<pubDate>Wed, 19 Aug 2009 14:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottking.com.au/blog/?p=53#comment-23</guid>
		<description>Hi Scott,

Thank you for your swift reply!

I meant the variables in the PHP. ie $title, $description, $keywords etc. These never change from the original settings. ie $title=&quot;Home&quot;; I have not wired in the SWFAddress yet, as I would like to get the php working first. 
The code I am using is the same as yours in step 4, with one line changed $inPageContent=&quot;404 Oops&quot;;

The result is tinyurl.com/mhgstj (I am hiding my domain from the spiders).

Could it be something to do with it being on Apache rather than IIS?

Thanks again,

J</description>
		<content:encoded><![CDATA[<p>Hi Scott,</p>
<p>Thank you for your swift reply!</p>
<p>I meant the variables in the PHP. ie $title, $description, $keywords etc. These never change from the original settings. ie $title=&#8221;Home&#8221;; I have not wired in the SWFAddress yet, as I would like to get the php working first.<br />
The code I am using is the same as yours in step 4, with one line changed $inPageContent=&#8221;404 Oops&#8221;;</p>
<p>The result is tinyurl.com/mhgstj (I am hiding my domain from the spiders).</p>
<p>Could it be something to do with it being on Apache rather than IIS?</p>
<p>Thanks again,</p>
<p>J</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott King</title>
		<link>http://www.scottking.com.au/blog/2008/06/php-seo-tags-for-flash-sites/comment-page-1/#comment-22</link>
		<dc:creator>Scott King</dc:creator>
		<pubDate>Wed, 19 Aug 2009 13:53:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottking.com.au/blog/?p=53#comment-22</guid>
		<description>Hi Julian,

Not a problem, When you say the variables are set to the defaults, do you mean the SWFAddress variables in Flash arn&#039;t being set or those in the PHP?

You could try running an &lt;em&gt;$requestedDeepLink&lt;/em&gt; statement anywhere after the &lt;em&gt;$requestedDeepLink=getDeepLink();&lt;/em&gt; call to determine if the correct variable information is being passed from the URL to the PHP.

If you&#039;re still having problems you could try posting the code that you&#039;re running and Ill take a look.</description>
		<content:encoded><![CDATA[<p>Hi Julian,</p>
<p>Not a problem, When you say the variables are set to the defaults, do you mean the SWFAddress variables in Flash arn&#8217;t being set or those in the PHP?</p>
<p>You could try running an <em>$requestedDeepLink</em> statement anywhere after the <em>$requestedDeepLink=getDeepLink();</em> call to determine if the correct variable information is being passed from the URL to the PHP.</p>
<p>If you&#8217;re still having problems you could try posting the code that you&#8217;re running and Ill take a look.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hoolagon</title>
		<link>http://www.scottking.com.au/blog/2008/06/php-seo-tags-for-flash-sites/comment-page-1/#comment-21</link>
		<dc:creator>hoolagon</dc:creator>
		<pubDate>Wed, 19 Aug 2009 13:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottking.com.au/blog/?p=53#comment-21</guid>
		<description>Hi Scott, I have been looking for ways to optimise my flash sites with swfAddress and your artical is just what I needed. Using a .htaccess file on Apache I have successfully linked to my custom 404 page, however I am unable to get the php working. 
I have taken a straight copy/past from your code in Step 4 and although the html part works, the variables remain set the defaults. If I use the code in Step 1, then I get nothing at all. 
Is there anything obvious that I may have missed?

Thanks in advance,

J</description>
		<content:encoded><![CDATA[<p>Hi Scott, I have been looking for ways to optimise my flash sites with swfAddress and your artical is just what I needed. Using a .htaccess file on Apache I have successfully linked to my custom 404 page, however I am unable to get the php working.<br />
I have taken a straight copy/past from your code in Step 4 and although the html part works, the variables remain set the defaults. If I use the code in Step 1, then I get nothing at all.<br />
Is there anything obvious that I may have missed?</p>
<p>Thanks in advance,</p>
<p>J</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Part 5: Adding Google Analytics tracking to the SWFAddres include - ScottKing.com.au</title>
		<link>http://www.scottking.com.au/blog/2008/06/php-seo-tags-for-flash-sites/comment-page-1/#comment-11</link>
		<dc:creator>Part 5: Adding Google Analytics tracking to the SWFAddres include - ScottKing.com.au</dc:creator>
		<pubDate>Sun, 31 May 2009 13:04:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottking.com.au/blog/?p=53#comment-11</guid>
		<description>[...] by Scott King on May.31, 2009, under Misc Dynamic SEO tags for your Flash site using PHP [...]</description>
		<content:encoded><![CDATA[<p>[...] by Scott King on May.31, 2009, under Misc Dynamic SEO tags for your Flash site using PHP [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Part 3. Add scrollbars for small browser windows - ScottKing.com.au</title>
		<link>http://www.scottking.com.au/blog/2008/06/php-seo-tags-for-flash-sites/comment-page-1/#comment-8</link>
		<dc:creator>Part 3. Add scrollbars for small browser windows - ScottKing.com.au</dc:creator>
		<pubDate>Fri, 22 May 2009 12:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottking.com.au/blog/?p=53#comment-8</guid>
		<description>[...] Dynamic SEO tags for your Flash site using PHP [...]</description>
		<content:encoded><![CDATA[<p>[...] Dynamic SEO tags for your Flash site using PHP [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

