<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Istanto Blog - Online Business, Short Reviews, Computers and Internet, Tips and Trick, Make Money Online. &#187; 4images</title>
	<atom:link href="http://www.istanto.net/tag/4images/feed" rel="self" type="application/rss+xml" />
	<link>http://www.istanto.net</link>
	<description>Online Business, Short Reviews, Computers and Internet, Tips and Trick, Make Money Online.</description>
	<lastBuildDate>Sun, 08 Jan 2012 02:56:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SEO: Sitemap generator for 4images</title>
		<link>http://www.istanto.net/seo-sitemap-generator-for-4images.html</link>
		<comments>http://www.istanto.net/seo-sitemap-generator-for-4images.html#comments</comments>
		<pubDate>Thu, 11 Dec 2008 00:02:30 +0000</pubDate>
		<dc:creator>Istanto</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tips & Trick]]></category>
		<category><![CDATA[4images]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin sitemap]]></category>
		<category><![CDATA[SE]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[sitemap]]></category>
		<category><![CDATA[sitemap generator 4images]]></category>

		<guid isPermaLink="false">http://www.istanto.net/seo-sitemap-generator-for-4images.html</guid>
		<description><![CDATA[Hello everyone this is another good SEO plugins for 4images gallery systems. This sitemap generator can help your visitor or any SE bot found out detailed about your website. This can help you raise your pagerank and also in same time helping your page got indexed in Search Engine. I have tested this plugin on [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">Hello everyone <img src='http://www.istanto.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  this is another good <strong>SEO</strong> plugins for 4images gallery systems. This sitemap generator can help your <em><strong>visitor</strong></em> or any <em><strong>SE bot</strong></em> found out detailed about your website. This can help you raise your pagerank and also in same time helping your page got indexed in Search Engine. I have tested this plugin on my wallpapers site <a href="http://www.innovativedesktop.com">www.innovativedesktop.com</a> using 4images v1.7.4 and it&#8217;s working pretty good without any <strike>bug</strike>.</p>
<p align="justify"><a href="http://www.innovativedesktop.com/sitemap.php"><img src="http://www.istanto.net/wp-content/uploads/2008/12/seo-sitemap.jpg" alt="seo-sitemap.jpg" /></a></p>
<p align="justify">First, what you need for this plugin? You need to download this <a href="http://www.istanto.net/wp-content/uploads/2008/12/sitemap-v10.zip" title="package">package</a> first. Extract it then upload it into your hosting (default template name should be changed with your own template name)</p>
<p align="justify"><u><strong>Alright now we ready for installation:</strong></u></p>
<p align="justify"><strong>1</strong>. Open <strong><font color="#008000">includes</font>/<font color="#ff0000">page_header.php</font></strong></p>
<p align="justify"><strong>Find:</strong></p>
<p><code>"media_url" =&gt; MEDIA_PATH,<br />
</code></p>
<p align="justify"><strong>Insert bellow:</strong></p>
<p><span id="more-869"></span></p>
<p align="justify">&#8220;url_sitemap&#8221; =&gt; $site_sess-&gt;url(ROOT_PATH.&#8221;sitemap.php&#8221;),<br />
&#8220;lang_sitemap&#8221; =&gt; $lang['sitemap'],</p>
<p align="justify">In case code coverted wrong download page_header.php in <a href="http://www.istanto.net/wp-content/uploads/2008/12/page_headerphp.txt" title="HERE!">HERE!</a></p>
<p align="justify">2. Open <font color="#008000"><strong>lang</strong></font>/<strong>&lt;your language&gt;</strong> /<font color="#ff0000"><strong>main.php</strong></font></p>
<p align="justify">At the end, before closing <font color="#ff0000"><strong>?&gt;</strong></font><strong> insert</strong>:</p>
<p align="justify"><code>$lang['sitemap'] = "Sitemap";<br />
$lang['sitemap_legend'] = "Legend";<br />
$lang['sitemap_viewimages_yes'] = "Allowed view images";<br />
$lang['sitemap_viewimages_no'] = "Not allowed view images";<br />
$lang['sitemap_viewimages_new_yes'] = "With new images and you are allowed view images";<br />
$lang['sitemap_viewimages_new_no'] = "With new images but you are not allowed view images";<br />
$lang['sitemap_cat_info'] = "&lt;span class=\"sitemapinfo\"&gt;{lang_images}{lang_new_images}{lang_hits}{lang_description}&lt;/span&gt;";<br />
$lang['sitemap_images'] = "Images: {images}";<br />
$lang['sitemap_new_images'] = " (New: {new_images})";<br />
$lang['sitemap_hits'] = " Hits: {hits}";<br />
$lang['sitemap_description'] = " Description: {description}";<br />
$lang['sitemap_hidden'] = "&lt; hidden &gt;";<br />
</code></p>
<p align="justify">In case code coverted wrong download main.php in <a href="http://www.istanto.net/wp-content/uploads/2008/12/mainphp.txt" title="HERE!">HERE!</a></p>
<p align="justify">4.  Open <strong><font color="#008000">templates</font>/&lt;your template&gt;/<font color="#ff0000">user_logininfo.html</font></strong> and <strong><font color="#008000">templates</font>/&lt;your template&gt;/<font color="#ff0000">user_loginform.html</font></strong></p>
<p>In the place where you want the link to sitemap be showed <strong>add the following html code:</strong></p>
<p align="justify"><code>» &lt;a href="{url_sitemap}"&gt;{lang_sitemap}&lt;/a&gt;<br />
</code></p>
<p align="justify"><code></code>5. Open <strong><font color="#008000">templates</font>/&lt;your template&gt;/<font color="#ff0000">style.css</font> </strong></p>
<p align="justify"><strong>Add:</strong></p>
<p>.sitemapinfo<br />
{<br />
font-size: 9px;<br />
padding: 2px 2px 2px 2px;<br />
margin: 2px 2px 2px 2px;<br />
color: #8794A7;<br />
}<br />
.sitemaprow1<br />
{<br />
background-color: #e1e1e1;<br />
color: #004c75;<br />
}</p>
<p>.sitemaprow2<br />
{<br />
background-color: #efefef;<br />
color: #004c75;<br />
}</p>
<p align="justify">Well done now the last <em>hard things</em> you have to do it manually. Check your sitemap view, if it fit with your page then you don&#8217;t need to make modification. when you need to modificate the view <strong>code</strong> file sitemap.html should be changed <strong>following</strong> your home.html structures not at all just changed it so it can fit your pages.</p>
<p align="justify">And you&#8217;re ready! enjoy! <img src='http://www.istanto.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.istanto.net/seo-sitemap-generator-for-4images.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>SEO: URL Rewrite for 4images</title>
		<link>http://www.istanto.net/seo-url-rewrite-for-4images.html</link>
		<comments>http://www.istanto.net/seo-url-rewrite-for-4images.html#comments</comments>
		<pubDate>Sun, 20 Apr 2008 10:49:03 +0000</pubDate>
		<dc:creator>Istanto</dc:creator>
				<category><![CDATA[Computer And Internet]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Tips & Trick]]></category>
		<category><![CDATA[4images]]></category>
		<category><![CDATA[4images SEO]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Rewrite]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[URL Rewrite]]></category>

		<guid isPermaLink="false">http://www.istanto.net/seo-url-rewrite-for-4images.html</guid>
		<description><![CDATA[Well, I just have done optimize SEO for one of my website using 4images gallery system it&#8217;s on http://www.innovativedesktop.com basically I play with meta title, keywords, and description. And now I&#8217;m using URL rewrite. URL look cool and more search engine friendly I believe after a week or month it will indexed in lot of [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">Well, I just have done optimize SEO for one of my website using 4images gallery system it&#8217;s on <a href="http://www.innovativedesktop.com" target="_blank">http://www.innovativedesktop.com</a> basically I play with meta title, keywords, and description. And now I&#8217;m using URL rewrite. URL look cool and more search engine friendly I believe after a week or month it will indexed in lot of search engine <img src='http://www.istanto.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p align="justify">Here is the way for you&#8217;re to using URL rewrite on 4images to make it more search engine friendly <strong>REMEMBER</strong> this will eat CPU resources. (<strong>before you doing this I recommended to backup your files first</strong>). Any alternative you can learn about <em>URL rewrite</em> yourself to make it works as you want (google is the best teacher).</p>
<p><strong>1. You need to make .htaccess file and put this code on it</strong></p>
<p>RewriteEngine On<br />
RewriteRule ^lightbox\.html$ lightbox.php?%{QUERY_STRING}<br />
RewriteRule ^lightbox\.([0-9]+)\.html$ lightbox.php?page=$1&amp;%{QUERY_STRING}<br />
RewriteRule ^search\.html$ search.php?%{QUERY_STRING}<br />
RewriteRule ^search\.([0-9]+)\.html$ search.php?page=$1&amp;%{QUERY_STRING}<br />
RewriteRule ^postcard([a-zA-Z0-9]+)\.html$ postcards.php?postcard_id=$1&amp;%{QUERY_STRING}<br />
RewriteRule ^postcard\.img([0-9]+)\.html$ postcards.php?image_id=$1&amp;%{QUERY_STRING}<br />
RewriteRule ^k_(.*)_([0-9]+).html categories.php?cat_id=$2&amp;%{QUERY_STRING}<br />
RewriteRule ^r_(.*)_([0-9]+).html details.php?image_id=$2&amp;%{QUERY_STRING}<br />
RewriteRule ^r([0-9]+).search.html details.php?image_id=$1&amp;%{QUERY_STRING}</p>
<p><strong>2. Open /include/sessions.php before the last line add this code</strong></p>
<p>//Mod_bmollet<br />
/**<br />
* Get the category url<br />
* @param int $cat_id The id of the category<br />
* @param string $cat_url The current status of the URL<br />
*/<br />
function get_category_url($cat_id,$cat_url = &#8221;)<br />
{<br />
global $site_db;<br />
$sql = &#8220;SELECT cat_name,cat_parent_id FROM &#8220;.CATEGORIES_TABLE.&#8221; WHERE cat_id = &#8216;&#8221;.$cat_id.&#8221;&#8216;&#8221;;<br />
$result = $site_db-&gt;query($sql);<br />
$row = $site_db-&gt;fetch_array($result);<br />
$row['cat_name'] = strtr($row['cat_name'], &#8220;éèêàëâúóíáABCDEFGHIJKLMNOPQRSTUVWXYZ&#8221;,&#8221;eeeaeauoiaabcdefghijklmnopqrstuvwxyz&#8221;);<br />
$cat_url  = &#8216;_&#8217;.str_replace(&#8216;+&#8217;,'_&#8217;,urlencode($row['cat_name'])).&#8217;_&#8217;.$cat_id.$cat_url;<br />
// if you want full path of category in url, put next line in comment<br />
return $cat_url;<br />
if( $row['cat_parent_id'] != 0)<br />
{<br />
return get_category_url($row['cat_parent_id'],$cat_url);<br />
}<br />
else<br />
{<br />
return $cat_url;<br />
}<br />
}<br />
//Mod_bmollet<br />
/**<br />
* Get the image url<br />
* @param int $image_id The id of the image<br />
*/<br />
function get_image_url($image_id)<br />
{<br />
global $site_db;<br />
$sql = &#8220;SELECT cat_id,image_name FROM &#8220;.IMAGES_TABLE.&#8221; WHERE image_id = &#8216;&#8221;.$image_id.&#8221;&#8216;&#8221;;<br />
$result = $site_db-&gt;query($sql);<br />
$row = $site_db-&gt;fetch_array($result);<br />
$row['image_name'] = strtr($row['image_name'], &#8220;éèêàëâúóíáABCDEFGHIJKLMNOPQRSTUVWXYZ&#8221;,&#8221;eeeaeauoiaabcdefghijklmnopqrstuvwxyz&#8221;);<br />
// if you want comlpete path to image in url, remove comment from following line<br />
//return get_category_url($row['cat_id']).&#8217;-&#8217;.str_replace(&#8216;+&#8217;,'-&#8217;,urlencode($row['image_name'])).&#8217;-&#8217;.$image_id;<br />
return &#8216;_&#8217;.str_replace(&#8216;+&#8217;,'_&#8217;,urlencode($row['image_name'])).&#8217;_&#8217;.$image_id;<br />
}<br />
<span id="more-100"></span><br />
<strong>3. Find this code on /include/sessions.php</strong></p>
<p>function url($url, $amp = &#8220;&amp;&#8221;) {<br />
global $l;<br />
$dummy_array = explode(&#8220;#&#8221;, $url);<br />
$url = $dummy_array[0];</p>
<p>if ($this-&gt;mode == &#8220;get&#8221; &amp;&amp; !preg_match(&#8220;/&#8221;.SESSION_NAME.&#8221;=/i&#8221;, $url)) {<br />
$url .= preg_match(&#8220;/\?/&#8221;, $url) ? &#8220;$amp&#8221; : &#8220;?&#8221;;<br />
$url .= SESSION_NAME.&#8221;=&#8221;.$this-&gt;session_id;<br />
}</p>
<p>if (!empty($l)) {<br />
$url .= preg_match(&#8220;/\?/&#8221;, $url) ? &#8220;$amp&#8221; : &#8220;?&#8221;;<br />
$url .= &#8220;l=&#8221;.$l;<br />
}</p>
<p>$url .= (isset($dummy_array[1])) ? &#8220;#&#8221;.$dummy_array[1] : &#8220;&#8221;;<br />
return $url;<br />
}</p>
<p><strong>Replace it with this code </strong></p>
<p>/* ORIGINAL CODE<br />
function url($url, $amp = &#8220;&amp;&#8221;) {<br />
global $l;<br />
$dummy_array = explode(&#8220;#&#8221;, $url);<br />
$url = $dummy_array[0];</p>
<p>if ($this-&gt;mode == &#8220;get&#8221; &amp;&amp; !preg_match(&#8220;/&#8221;.SESSION_NAME.&#8221;=/i&#8221;, $url)) {<br />
$url .= preg_match(&#8220;/\?/&#8221;, $url) ? &#8220;$amp&#8221; : &#8220;?&#8221;;<br />
$url .= SESSION_NAME.&#8221;=&#8221;.$this-&gt;session_id;<br />
}</p>
<p>if (!empty($l)) {<br />
$url .= preg_match(&#8220;/\?/&#8221;, $url) ? &#8220;$amp&#8221; : &#8220;?&#8221;;<br />
$url .= &#8220;l=&#8221;.$l;<br />
}</p>
<p>$url .= (isset($dummy_array[1])) ? &#8220;#&#8221;.$dummy_array[1] : &#8220;&#8221;;<br />
return $url;<br />
}<br />
*/<br />
function url($url, $amp = &#8220;&amp;&#8221;) {<br />
global $l, $user_info;<br />
$dummy_array = explode(&#8220;#&#8221;, $url);<br />
$url = $dummy_array[0];<br />
$url = str_replace(&#8216;&amp;&#8217;, &#8216;&amp;&#8217;, $url);<br />
if (!defined(&#8216;IN_CP&#8217;)) {<br />
if (strstr($url, &#8216;index.php&#8217;)) {<br />
$url = str_replace(&#8216;index.php&#8217;, &#8221;, $url);<br />
}<br />
elseif (strstr($url, &#8216;search.php&#8217;)) {<br />
if (strstr($url, &#8216;page=&#8217;)) {<br />
preg_match(&#8216;#page=([0-9]+)&amp;?#&#8217;, $url, $matches);<br />
if (isset($matches[1])) {<br />
$split = explode(&#8216;?&#8217;, $url);<br />
$url = $split[0];<br />
$query = @$split[1];<br />
$url   = str_replace(&#8216;search.php&#8217;, &#8216;search.&#8217;.$matches[1].&#8217;.html&#8217;, $url);<br />
$query = str_replace(&#8216;page=&#8217;.$matches[1].&#8217;&amp;&#8217;, &#8221;, $query);<br />
$query = str_replace(&#8216;&amp;page=&#8217;.$matches[1], &#8221;, $query);<br />
$query = str_replace(&#8216;page=&#8217;.$matches[1], &#8221;, $query);<br />
if (!empty($query)) {<br />
$url .= &#8216;?&#8217; . $query;<br />
}<br />
}<br />
}<br />
else {<br />
$url = str_replace(&#8216;search.php&#8217;, &#8216;search.html&#8217;, $url);<br />
}<br />
}<br />
elseif (strstr($url, &#8216;lightbox.php&#8217;)) {<br />
if (strstr($url, &#8216;page=&#8217;)) {<br />
preg_match(&#8216;#page=([0-9]+)&amp;?#&#8217;, $url, $matches);<br />
if (isset($matches[1])) {<br />
$split = explode(&#8216;?&#8217;, $url);<br />
$url = $split[0];<br />
$query = @$split[1];<br />
$url   = str_replace(&#8216;lightbox.php&#8217;, &#8216;lightbox.&#8217;.$matches[1].&#8217;.html&#8217;, $url);<br />
$query = str_replace(&#8216;page=&#8217;.$matches[1].&#8217;&amp;&#8217;, &#8221;, $query);<br />
$query = str_replace(&#8216;&amp;page=&#8217;.$matches[1], &#8221;, $query);<br />
$query = str_replace(&#8216;page=&#8217;.$matches[1], &#8221;, $query);<br />
if (!empty($query)) {<br />
$url .= &#8216;?&#8217; . $query;<br />
}<br />
}<br />
}<br />
else {<br />
$url = str_replace(&#8216;lightbox.php&#8217;, &#8216;lightbox.html&#8217;, $url);<br />
}<br />
}<br />
elseif (strstr($url, &#8216;categories.php&#8217;)) {<br />
if (strstr($url, &#8216;cat_id=&#8217;) &amp;&amp; strstr($url, &#8216;page=&#8217;)) {<br />
preg_match(&#8216;#cat_id=([0-9]+)&amp;?#&#8217;, $url, $matches1);<br />
preg_match(&#8216;#page=([0-9]+)&amp;?#&#8217;, $url, $matches2);<br />
if (isset($matches1[1]) &amp;&amp; isset($matches2[1])) {<br />
$split = explode(&#8216;?&#8217;, $url);<br />
$url = $split[0];<br />
$query = @$split[1];<br />
$url   = str_replace(&#8216;categories.php&#8217;, &#8216;cat&#8217;.$matches1[1].&#8217;.&#8217;.$matches2[1].&#8217;.html&#8217;, $url);<br />
$query = str_replace(&#8216;cat_id=&#8217;.$matches1[1].&#8217;&amp;&#8217;, &#8221;, $query);<br />
$query = str_replace(&#8216;&amp;cat_id=&#8217;.$matches1[1], &#8221;, $query);<br />
$query = str_replace(&#8216;cat_id=&#8217;.$matches1[1], &#8221;, $query);<br />
$query = str_replace(&#8216;page=&#8217;.$matches2[1].&#8217;&amp;&#8217;, &#8221;, $query);<br />
$query = str_replace(&#8216;&amp;page=&#8217;.$matches2[1], &#8221;, $query);<br />
$query = str_replace(&#8216;page=&#8217;.$matches2[1], &#8221;, $query);<br />
if (!empty($query)) {<br />
$url .= &#8216;?&#8217; . $query;<br />
}<br />
}<br />
}<br />
elseif (strstr($url, &#8216;cat_id=&#8217;)) {<br />
preg_match(&#8216;#cat_id=([0-9]+)&amp;?#&#8217;, $url, $matches);<br />
if (isset($matches[1])) {<br />
$split = explode(&#8216;?&#8217;, $url);<br />
$url = $split[0];<br />
$query = @$split[1];<br />
$cat_url = get_category_url($matches[1]);<br />
$url   = str_replace(&#8216;categories.php&#8217;, &#8216;cat&#8217;.$cat_url.&#8217;.html&#8217;, $url);<br />
$query = str_replace(&#8216;cat_id=&#8217;.$matches[1].&#8217;&amp;&#8217;, &#8221;, $query);<br />
$query = str_replace(&#8216;&amp;cat_id=&#8217;.$matches[1], &#8221;, $query);<br />
$query = str_replace(&#8216;cat_id=&#8217;.$matches[1], &#8221;, $query);<br />
if (!empty($query)) {<br />
$url .= &#8216;?&#8217; . $query;<br />
}<br />
}<br />
}<br />
else {<br />
$url = str_replace(&#8216;categories.php&#8217;, &#8216;cat.html&#8217;, $url);<br />
}<br />
}<br />
elseif (strstr($url, &#8216;details.php?image_id=&#8217;)) {<br />
if (strstr($url, &#8216;image_id=&#8217;) &amp;&amp; strstr($url, &#8216;mode=&#8217;)) {<br />
preg_match(&#8216;#image_id=([0-9]+)&amp;?#&#8217;, $url, $matches1);<br />
preg_match(&#8216;#mode=([a-zA-Z0-9]+)&amp;?#&#8217;, $url, $matches2);<br />
if (isset($matches1[1]) &amp;&amp; isset($matches2[1])) {<br />
$split = explode(&#8216;?&#8217;, $url);<br />
$url = $split[0];<br />
$query = @$split[1];<br />
$url   = str_replace(&#8216;details.php&#8217;, &#8216;img&#8217;.$matches1[1].&#8217;.&#8217;.$matches2[1].&#8217;.html&#8217;, $url);<br />
$query = str_replace(&#8216;image_id=&#8217;.$matches1[1].&#8217;&amp;&#8217;, &#8221;, $query);<br />
$query = str_replace(&#8216;&amp;image_id=&#8217;.$matches1[1], &#8221;, $query);<br />
$query = str_replace(&#8216;image_id=&#8217;.$matches1[1], &#8221;, $query);<br />
$query = str_replace(&#8216;mode=&#8217;.$matches2[1].&#8217;&amp;&#8217;, &#8221;, $query);<br />
$query = str_replace(&#8216;&amp;mode=&#8217;.$matches2[1], &#8221;, $query);<br />
$query = str_replace(&#8216;mode=&#8217;.$matches2[1], &#8221;, $query);<br />
if (!empty($query)) {<br />
$url .= &#8216;?&#8217; . $query;<br />
}<br />
}<br />
}<br />
else {<br />
preg_match(&#8216;#image_id=([0-9]+)&amp;?#&#8217;, $url, $matches);<br />
if (isset($matches[1])) {<br />
$split = explode(&#8216;?&#8217;, $url);<br />
$url = $split[0];<br />
$query = @$split[1];<br />
$url   = str_replace(&#8216;details.php&#8217;, &#8216;img&#8217;.get_image_url($matches[1]).&#8217;.html&#8217;, $url);<br />
$query = str_replace(&#8216;image_id=&#8217;.$matches[1].&#8217;&amp;&#8217;, &#8221;, $query);<br />
$query = str_replace(&#8216;&amp;image_id=&#8217;.$matches[1], &#8221;, $query);<br />
$query = str_replace(&#8216;image_id=&#8217;.$matches[1], &#8221;, $query);<br />
if (!empty($query)) {<br />
$url .= &#8216;?&#8217; . $query;<br />
}<br />
}<br />
}<br />
}<br />
elseif (strstr($url, &#8216;postcards.php?image_id=&#8217;)) {<br />
preg_match(&#8216;#image_id=([0-9]+)&amp;?#&#8217;, $url, $matches);<br />
if (isset($matches[1])) {<br />
$split = explode(&#8216;?&#8217;, $url);<br />
$url = $split[0];<br />
$query = @$split[1];<br />
$url   = str_replace(&#8216;postcards.php&#8217;, &#8216;postcard.img&#8217;.$matches[1].&#8217;.html&#8217;, $url);<br />
$query = str_replace(&#8216;image_id=&#8217;.$matches[1].&#8217;&amp;&#8217;, &#8221;, $query);<br />
$query = str_replace(&#8216;&amp;image_id=&#8217;.$matches[1], &#8221;, $query);<br />
$query = str_replace(&#8216;image_id=&#8217;.$matches[1], &#8221;, $query);<br />
if (!empty($query)) {<br />
$url .= &#8216;?&#8217; . $query;<br />
}<br />
}<br />
}<br />
}<br />
if ($this-&gt;mode == &#8220;get&#8221; &amp;&amp; strstr($url, $this-&gt;session_id)) {<br />
$url .= strpos($url, &#8216;?&#8217;) !== false ? &#8216;&amp;&#8217; : &#8216;?&#8217;;<br />
$url .= SESSION_NAME.&#8221;=&#8221;.$this-&gt;session_id;<br />
}<br />
if (!empty($l)) {<br />
$url .= strpos($url, &#8216;?&#8217;) ? &#8216;&amp;&#8217; : &#8216;?&#8217;;<br />
$url .= &#8220;l=&#8221;.$l;<br />
}<br />
$url = str_replace(&#8216;&amp;&#8217;, $amp, $url);<br />
$url .= isset($dummy_array[1]) ? &#8220;#&#8221;.$dummy_array[1] : &#8220;&#8221;;<br />
return $url;<br />
}</p>
<p>Not sure on what are you doing?! just download this package file and put it on your hosting server! <a href="http://www.istanto.net/wp-content/uploads/2008/04/seo.rar" title="seo.rar">seo.rar</a></p>
<p>And.. you&#8217;re done! congratulation <img src='http://www.istanto.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  You can modify the code to make it works like you want. Anyway if you need to make script more stronger for SEO you might need to coding auto sitemap each time there is new images added. I try but no luck (not sure if xml works fine and accepted by most search engine because it&#8217;s works on IE but not showing correctly on firefox) maybe next time I will write it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.istanto.net/seo-url-rewrite-for-4images.html/feed</wfw:commentRss>
		<slash:comments>57</slash:comments>
		</item>
	</channel>
</rss>

