<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Search Engine Friendly URLS - The Real Fix!!</title>
        <description> ok, i saw that there was another post on how to fix the URLS so that they could become SEF, but that fix didn't seem to work for me. If anyone wants search engine friendly urls please read this tutorial. here you guys go....


SEF URLS:
(script installation - easy)
All files that need to be edited pertain only to your spider folder. 
[marcusecompressor.com]

---EDITING---

open or create a file called .htaccess and rewrite everything with this:
###################
RewriteEngine on
Options +FollowSymLinks
Options +SymlinksIfOwnerMatch
RewriteRule ^search([^/]+)-([0-9]+)\.html$ /search/search.php?query=$1&amp;amp;search=$2  [QSA,L]
RewriteRule ^search([^/]+)-([0-9]+)-([0-9]+)-([0-9]+)-([^/]+)\.html$ /search/search.php?query=$1&amp;amp;start=$2&amp;amp;search=$3&amp;amp;results=$4&amp;amp;type=$5  [QSA,L]
#####################


Notice the folder 'search' if your folder has a different name, change it accordingly.

Lastly, open search-results.html (should be in your template folder - This fix is only for standard template)

Find the lines:


	&amp;lt;div id=&amp;quot;other_pages&amp;quot;&amp;gt;
	&amp;lt;?php print $sph_messages[&amp;quot;Result page&amp;quot;]?&amp;gt;:
	&amp;lt;?php if ($start &amp;gt;1){?&amp;gt;
				&amp;lt;a href=&amp;quot;&amp;lt;?php print 'http://www.marcusecompressor.com/search/search'.quote_replace(addmarks($query)).'-1-'.$prev.'-'.'10'.'-'.$type_qry.'.html'?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php print $sph_messages['Previous']?&amp;gt;&amp;lt;/a&amp;gt;
	&amp;lt;?php  }?&amp;gt;	

	&amp;lt;?php  foreach ($other_pages as $page_num) {
				if ($page_num !=$start){?&amp;gt;
					&amp;lt;a href=&amp;quot;&amp;lt;?php print 'http://www.marcusecompressor.com/search/search.php?query='.quote_replace(addmarks($query)).'&amp;amp;start='.$page_num.'&amp;amp;search=1&amp;amp;results='.$results_per_page.$type_qry.$adv_qry?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php print $page_num?&amp;gt;&amp;lt;/a&amp;gt;
				&amp;lt;?php } else {?&amp;gt;	
					&amp;lt;b&amp;gt;&amp;lt;?php print $page_num?&amp;gt;&amp;lt;/b&amp;gt;
				&amp;lt;?php  }?&amp;gt;	
	&amp;lt;?php  }?&amp;gt;

	&amp;lt;?php if ($next &amp;lt;= $pages){?&amp;gt;	
			&amp;lt;a href=&amp;quot;&amp;lt;?php print 'http://www.marcusecompressor.com/search/search.php?query='.quote_replace(addmarks($query)).'&amp;amp;start='.$next.'&amp;amp;search=1&amp;amp;results='.$results_per_page.$type_qry.$adv_qry?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php print $sph_messages['Next']?&amp;gt;&amp;lt;/a&amp;gt;
	&amp;lt;?php  }?&amp;gt;	

	&amp;lt;/div&amp;gt;



Replace with:

	&amp;lt;div id=&amp;quot;other_pages&amp;quot;&amp;gt;
	&amp;lt;?php print $sph_messages[&amp;quot;Result page&amp;quot;]?&amp;gt;:
	&amp;lt;?php if ($start &amp;gt;1){?&amp;gt;
				&amp;lt;a href=&amp;quot;&amp;lt;?php print 'http://www.marcusecompressor.com/search/search'.quote_replace(addmarks($query)).'-'.$prev.'-1-'.'10'.'-'.'and'.'.html'?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php print $sph_messages['Previous']?&amp;gt;&amp;lt;/a&amp;gt;
	&amp;lt;?php  }?&amp;gt;	

	&amp;lt;?php  foreach ($other_pages as $page_num) {
				if ($page_num !=$start){?&amp;gt;
					&amp;lt;a href=&amp;quot;&amp;lt;?php print 'http://www.marcusecompressor.com/search/search'.quote_replace(addmarks($query)).'-'.$page_num.'-'.'1'.'-'.'10'.'-'.'and'.'.html'?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php print $page_num?&amp;gt;&amp;lt;/a&amp;gt;
				&amp;lt;?php } else {?&amp;gt;	
					&amp;lt;b&amp;gt;&amp;lt;?php print $page_num?&amp;gt;&amp;lt;/b&amp;gt;
				&amp;lt;?php  }?&amp;gt;	
	&amp;lt;?php  }?&amp;gt;
	&amp;lt;?php if ($next &amp;lt;= $pages){?&amp;gt;	
			&amp;lt;a href=&amp;quot;&amp;lt;?php print 'http://www.marcusecompressor.com/search/search'.quote_replace(addmarks($query)).'-'.$next.'-1-10-and.html'?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php print $sph_messages['Next']?&amp;gt;&amp;lt;/a&amp;gt;
	&amp;lt;?php  }?&amp;gt;	

	&amp;lt;/div&amp;gt;


this should give you sef urls, if you have any questions feel free to email me. good luck!</description>
        <link>http://www.sphider.eu/forum/read.php?3,4568,4568#msg-4568</link>
        <lastBuildDate>Sun, 26 May 2013 11:12:23 +0300</lastBuildDate>
        <generator>Phorum 5.2.10</generator>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,9543#msg-9543</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,9543#msg-9543</link>
            <description><![CDATA[ cladiron Wrote:<br />
-------------------------------------------------------<br />
&gt; &gt;<br />
&gt; --------------------------------------------------<br />
&gt; -----<br />
&gt; &gt; I get error:<br />
&gt; &gt; Not Found<br />
&gt; &gt; The requested URL /noticias.html was not found<br />
&gt; on<br />
&gt; &gt; this server.<br />
&gt; &gt; <br />
&gt; &gt; Why does not it? <br />
&gt; &gt; What should I do?<br />
&gt; <br />
&gt; <br />
&gt; Do you have this file ?  &quot;noticias.html&quot;<br />
<br />
No.<br />
The word &quot;noticias&quot; is a search phrase.<br />
http:/ /www.mydomain.com/search-phrase.html<br />
<br />
Sample: http:/ /www.mydomain.com/search.php?query=Noticias&amp;search=1<br />
Desired result: http:/ /www.mydomain.com/noticias.html <br />
<br />
What should I do?]]></description>
            <dc:creator>sp436</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Thu, 21 Jun 2012 17:27:34 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,9539#msg-9539</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,9539#msg-9539</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br/></small><strong>sp436 Wrote:</strong><br/>
-------------------------------------------------------<br />
&gt; I get error:<br />
&gt; Not Found<br />
&gt; The requested URL /noticias.html was not found on<br />
&gt; this server.<br />
&gt; <br />
&gt; Why does not it? <br />
&gt; What should I do?</div></blockquote>
<br />
Do you have this file ?  &quot;noticias.html&quot;]]></description>
            <dc:creator>cladiron</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Thu, 21 Jun 2012 08:08:39 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,9525#msg-9525</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,9525#msg-9525</link>
            <description><![CDATA[ I have this in the .htaccess.:<br />
<br />
<pre class="bbcode">
&lt;IfModule mod_rewrite.c&gt;
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(query=.*)%20(.*)
RewriteRule ^search\.php$ search.php?%1+%2 [N]

RewriteCond %{QUERY_STRING} ^query=([^&amp;]+)&amp;search=1$
RewriteRule ^search\.php$ /%1.html? [R=301,L]
RewriteCond %{QUERY_STRING} ^query=([^&amp;]+)&amp;search=1&amp;start=([0-9]+)$
RewriteRule ^search\.php$ /%2/%1.html? [R=301,L]

RewriteRule ^(.*)%20(.*) /$1+$2 [R=301,L]

RewriteRule ^keywords/([^/]+)/([0-9]+)$ /search.php?query=$1&amp;search=1&amp;start=$2&amp;a=1 [L]
RewriteRule ^keywords/(.*)$ /search.php?query=$1&amp;search=1&amp;a=1 [L]
&lt;/IfModule&gt;</pre>
<br />
I get error:<br />
Not Found<br />
The requested URL /noticias.html was not found on this server.<br />
<br />
Why does not it? <br />
What should I do?]]></description>
            <dc:creator>sp436</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Thu, 14 Jun 2012 11:35:27 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,8075#msg-8075</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,8075#msg-8075</link>
            <description><![CDATA[ You need mod_rewrite on your server red2678]]></description>
            <dc:creator>nedac</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Fri, 29 Oct 2010 06:20:35 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,8069#msg-8069</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,8069#msg-8069</link>
            <description><![CDATA[ The information here are useful I used theses in my project.]]></description>
            <dc:creator>ege</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Sun, 24 Oct 2010 11:34:12 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,8031#msg-8031</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,8031#msg-8031</link>
            <description><![CDATA[ Bump...]]></description>
            <dc:creator>red2678</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Sun, 10 Oct 2010 20:45:50 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,7928#msg-7928</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,7928#msg-7928</link>
            <description><![CDATA[ @Readyman,<br />
<br />
First of all, thanks.<br />
<br />
I have two questions:<br />
<br />
1). where shoud the .htaccess file be placed?<br />
<br />
2) My search is in its own folder. Therefore, the location of my search.php is like this: www.Mysite.com/mysearch/search.php.<br />
    Now, do I need to mod these lines that have referenced to search.php?:<br />
RewriteRule ^search\.php$ search.php?%1+%2 [N] <br />
RewriteRule ^search\.php$ /%1.html? [R=301,L] <br />
RewriteRule ^search\.php$ /%2/%1.html? [R=301,L] <br />
RewriteRule ^keywords/([^/]+)/([0-9]+)$ /search.php?query=$1&amp;search=1&amp;start=$2&amp;a=1 [L] <br />
RewriteRule ^keywords/(.*)$ /search.php?query=$1&amp;search=1&amp;a=1 [L]]]></description>
            <dc:creator>t-p</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Wed, 15 Sep 2010 03:22:08 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,7927#msg-7927</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,7927#msg-7927</link>
            <description><![CDATA[ Convergence Wrote:<br />
-------------------------------------------------------<br />
&gt; I used readyman's .htaccess rewrite - urls look<br />
&gt; great, I get the following looking URLs<br />
&gt; <br />
&gt; domainname.ext/search+term.html<br />
&gt; <br />
&gt; However, while the URLs look great, I get this<br />
&gt; (instead of search results)...<br />
&gt; <br />
&gt; Not Found<br />
&gt; <br />
&gt; The requested URL /search+term.html was not found<br />
&gt; on this server.<br />
&gt; Additionally, a 404 Not Found error was<br />
&gt; encountered while trying to use an ErrorDocument<br />
&gt; to handle the request.<br />
&gt; <br />
&gt; Any ideas?<br />
&gt; <br />
&gt; Thanks!<br />
<br />
I get the same thing. Anyone ever figure this out?<br />
<br />
~Red]]></description>
            <dc:creator>red2678</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Tue, 14 Sep 2010 19:15:35 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,7707#msg-7707</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,7707#msg-7707</link>
            <description><![CDATA[ I used readyman's .htaccess rewrite - urls look great, I get the following looking URLs<br />
<br />
domainname.ext/search+term.html<br />
<br />
However, while the URLs look great, I get this (instead of search results)...<br />
<br />
Not Found<br />
<br />
The requested URL /search+term.html was not found on this server.<br />
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.<br />
<br />
Any ideas?<br />
<br />
Thanks!]]></description>
            <dc:creator>Convergence</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Sat, 26 Jun 2010 23:04:08 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,4778#msg-4778</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,4778#msg-4778</link>
            <description><![CDATA[ I updated my mod_rewrite code above to reflect an issue involving the + sign 301 redirect.  The problem was that when google reindexed some of my pages that had already had a %20 (space) in the url it was incorrectly changing, and reindexed, to %2520 instead of the plus sign.  I believe this problem has been fixed.]]></description>
            <dc:creator>readyman</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Wed, 20 Aug 2008 03:14:26 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,4754#msg-4754</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,4754#msg-4754</link>
            <description><![CDATA[ very nice informations, thx all :)<br />
here is a full example for integration, i hope its helpfull.<br />
A test u can see here: [<a href="http://www.darm-inform.de" rel="nofollow" >www.darm-inform.de</a>]<br />
<br />
your index.php must contains:<br />
<br />
switch($nav) <br />
{<br />
																case &quot;suchen&quot;: <br />
									include(&quot;search/mysearch.php&quot;);								break;<br />
<br />
}<br />
<br />
<br />
<br />
<br />
<br />
your website template (not that from sphider):<br />
<br />
&lt;form action=&quot;search/mysearch_modrewrite.php&quot; method=&quot;get&quot; id=&quot;suchen&quot; enctype=&quot;multipart/form-data&quot;&gt;<br />
<br />
&lt;div style=&quot;text-align: center;&quot;&gt;<br />
	&lt;input name=&quot;query&quot; type=&quot;text&quot; size=&quot;9&quot; id=&quot;query&quot; value=&quot;&quot; /&gt;<br />
	&lt;input name=&quot;&quot; type=&quot;submit&quot; value=&quot;go&quot; /&gt;<br />
&lt;/div&gt;<br />
&lt;input type=&quot;hidden&quot; name=&quot;nav&quot; value=&quot;suchen&quot; /&gt;<br />
&lt;input type=&quot;hidden&quot; name=&quot;search&quot; value=&quot;1&quot; /&gt;<br />
&lt;input type=&quot;hidden&quot; name=&quot;start&quot; value=&quot;1&quot; /&gt;<br />
&lt;input type=&quot;hidden&quot; name=&quot;resultsperpage&quot; value=&quot;1&quot; /&gt;<br />
&lt;/form&gt;<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
mysearch_modrewrite.php (form action from your website template):<br />
<br />
&lt;?php<br />
	print '&lt;meta http-equiv=&quot;refresh&quot; content=&quot;0; url=/suche/' . $_GET[query] . '-' . $_GET[start] . '-1-' . $_GET[resultsperpage] . '-and.html&quot; /&gt;';<br />
	exit;<br />
?&gt;<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
your htaccess file:<br />
<br />
RewriteEngine on<br />
Options +FollowSymlinks<br />
Options -MultiViews<br />
RewriteBase /<br />
<br />
RewriteRule ^suche/([^/]+)-([0-9]+)\.html$ /index.php?nav=suchen&amp;query=$1&amp;search=$2 [QSA,L]<br />
RewriteRule ^suche/([^/]+)-([0-9]+)-([0-9]+)-([0-9]+)-([^/]+)\.html$ /index.php?nav=suchen&amp;query=$1&amp;start=$2&amp;search=$3&amp;results=$4&amp;type=$5 [QSA,L] <br />
<br />
<br />
<br />
<br />
<br />
<br />
mysearch.php (its a copy from search.php without layout):<br />
<br />
<br />
&lt;?php<br />
/*******************************************<br />
* Sphider Version 1.3.x<br />
* This program is licensed under the GNU GPL.<br />
* By Ando Saabas          ando(a t)cs.ioc.ee<br />
********************************************/<br />
//error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); <br />
error_reporting(E_ALL); <br />
$include_dir = &quot;include&quot;; <br />
include (&quot;$include_dir/commonfuncs.php&quot;);<br />
//extract(getHttpVars());<br />
<br />
if (isset($_GET['query']))<br />
	$query = $_GET['query'];<br />
if (isset($_GET['search']))<br />
	$search = $_GET['search'];<br />
if (isset($_GET['domain'])) <br />
	$domain = $_GET['domain'];<br />
if (isset($_GET['type'])) <br />
	$type = $_GET['type'];<br />
if (isset($_GET['catid'])) <br />
	$catid = $_GET['catid'];<br />
if (isset($_GET['category'])) <br />
	$category = $_GET['category'];<br />
if (isset($_GET['results'])) <br />
	$results = $_GET['results'];<br />
if (isset($_GET['start'])) <br />
	$start = $_GET['start'];<br />
if (isset($_GET['adv'])) <br />
	$adv = $_GET['adv'];<br />
	<br />
	<br />
$include_dir = &quot;include&quot;; <br />
$template_dir = &quot;templates&quot;; <br />
$settings_dir = &quot;settings&quot;; <br />
$language_dir = &quot;languages&quot;;<br />
<br />
<br />
require_once(&quot;$settings_dir/database.php&quot;);<br />
require_once(&quot;$language_dir/en-language.php&quot;);<br />
require_once(&quot;$include_dir/searchfuncs.php&quot;);<br />
require_once(&quot;$include_dir/categoryfuncs.php&quot;);<br />
<br />
<br />
include &quot;$settings_dir/conf.php&quot;;<br />
<br />
//include &quot;$template_dir/$template/header.html&quot;;<br />
include &quot;$language_dir/$language-language.php&quot;;<br />
<br />
<br />
if ($type != &quot;or&quot; &amp;&amp; $type != &quot;and&quot; &amp;&amp; $type != &quot;phrase&quot;) { <br />
	$type = &quot;and&quot;;<br />
}<br />
<br />
if (preg_match(&quot;/[^a-z0-9-.]+/&quot;, $domain)) {<br />
	$domain=&quot;&quot;;<br />
}<br />
<br />
<br />
if ($results != &quot;&quot;) {<br />
	$results_per_page = $results;<br />
}<br />
<br />
if (get_magic_quotes_gpc()==1) {<br />
	$query = stripslashes($query);<br />
} <br />
<br />
if (!is_numeric($catid)) {<br />
	$catid = &quot;&quot;;<br />
}<br />
<br />
if (!is_numeric($category)) {<br />
	$category = &quot;&quot;;<br />
} <br />
<br />
<br />
<br />
if ($catid &amp;&amp; is_numeric($catid)) {<br />
<br />
	$tpl_['category'] = sql_fetch_all('SELECT category FROM '.$mysql_table_prefix.'categories WHERE category_id='.(int)$_REQUEST['catid']);<br />
}<br />
	<br />
$count_level0 = sql_fetch_all('SELECT count(*) FROM '.$mysql_table_prefix.'categories WHERE parent_num=0');<br />
$has_categories = 0;<br />
<br />
if ($count_level0) {<br />
	$has_categories = $count_level0[0][0];<br />
}<br />
<br />
<br />
<br />
//require_once(&quot;$template_dir/$template/search_form.html&quot;);<br />
<br />
<br />
function getmicrotime(){<br />
    list($usec, $sec) = explode(&quot; &quot;,microtime());<br />
    return ((float)$usec + (float)$sec);<br />
    }<br />
<br />
<br />
<br />
function poweredby () {<br />
	global $sph_messages;<br />
    //If you want to remove this, please donate to the project at [<a href="http://www.sphider.eu/donate.php" rel="nofollow" >www.sphider.eu</a>]<br />
    print $sph_messages['Powered by'];?&gt;  &lt;a href=&quot;[<a href="http://www.sphider.eu/&quot;&gt;&lt;img" rel="nofollow" >www.sphider.eu</a>] src=&quot;search/sphider-logo.png&quot; border=&quot;0&quot; style=&quot;vertical-align: middle&quot; alt=&quot;Sphider&quot;&gt;&lt;/a&gt;<br />
<br />
    &lt;?php <br />
}<br />
<br />
<br />
function saveToLog ($query, $elapsed, $results) {<br />
        global $mysql_table_prefix;<br />
    if ($results ==&quot;&quot;) {<br />
        $results = 0;<br />
    }<br />
    $query =  &quot;insert into &quot;.$mysql_table_prefix.&quot;query_log (query, time, elapsed, results) values ('$query', now(), '$elapsed', '$results')&quot;;<br />
	mysql_query($query);<br />
                    <br />
	echo mysql_error();<br />
                        <br />
}<br />
<br />
switch ($search) {<br />
	case 1:<br />
<br />
		if (!isset($results)) {<br />
			$results = &quot;&quot;;<br />
		}<br />
		$search_results = get_search_results($query, $start, $category, $type, $results, $domain);<br />
		require(&quot;$template_dir/$template/search_results.html&quot;);<br />
	break;<br />
	default:<br />
		if ($show_categories) {<br />
			if ($_REQUEST['catid']  &amp;&amp; is_numeric($catid)) {<br />
				$cat_info = get_category_info($catid);<br />
			} else {<br />
				$cat_info = get_categories_view();<br />
			}<br />
			require(&quot;$template_dir/$template/categories.html&quot;);<br />
		}<br />
	break;<br />
	}<br />
<br />
//include &quot;$template_dir/$template/footer.html&quot;;<br />
?&gt;<br />
<br />
<br />
<br />
<br />
<br />
search_results.html (template from sphider):<br />
<br />
&lt;br/&gt;<br />
&lt;?php <br />
extract($search_results);<br />
?&gt;<br />
<br />
&lt;?php if ($search_results['did_you_mean']){?&gt;<br />
	&lt;div id=&quot;did_you_mean&quot;&gt;<br />
	&lt;?php echo $sph_messages['DidYouMean'];?&gt;: &lt;a href=&quot;&lt;?php print 'index.php?nav=suchen&amp;query='.quote_replace(addmarks($search_results['did_you_mean'])).'&amp;search=1'?&gt;&quot;&gt;&lt;?php print $search_results['did_you_mean_b']; ?&gt;&lt;/a&gt;?<br />
	&lt;br&gt;<br />
    &lt;/div&gt;<br />
&lt;?php  }?&gt;	<br />
<br />
&lt;?php if ($search_results['ignore_words']){?&gt;<br />
	&lt;div id=&quot;common_report&quot;&gt;<br />
	&lt;?php while ($thisword=each($ignore_words)) {<br />
		$ignored .= &quot; &quot;.$thisword[1];<br />
	}		<br />
	$msg = str_replace ('%ignored_words', $ignored, $sph_messages[&quot;ignoredWords&quot;]); <br />
	echo $msg; ?&gt;<br />
	&lt;br&gt;<br />
    &lt;/div&gt;<br />
&lt;?php  }?&gt;	<br />
<br />
<br />
&lt;?php if ($search_results['total_results']==0){?&gt;<br />
	&lt;div id =&quot;result_report&quot;&gt;<br />
		&lt;?php <br />
		$msg = str_replace ('%query', $ent_query, $sph_messages[&quot;noMatch&quot;]);<br />
		echo $msg;<br />
		?&gt;<br />
		&lt;br&gt;<br />
	&lt;/div&gt;<br />
&lt;?php  }?&gt;	<br />
<br />
<br />
&lt;?php if ($total_results != 0 &amp;&amp; $from &lt;= $to){?&gt;<br />
	&lt;div id =&quot;result_report&quot;&gt;<br />
	&lt;?php  <br />
	$result = $sph_messages['Results'];<br />
	$result = str_replace ('%from', $from, $result);<br />
	$result = str_replace ('%to', $to, $result);<br />
	$result = str_replace ('%all', $total_results, $result);<br />
	$matchword = $sph_messages[&quot;matches&quot;];<br />
	if ($total_results== 1) {<br />
		$matchword= $sph_messages[&quot;match&quot;];<br />
	} else {<br />
		$matchword= $sph_messages[&quot;matches&quot;];<br />
	}<br />
<br />
	$result = str_replace ('%matchword', $matchword, $result);	 <br />
	$result = str_replace ('%secs', $time, $result);<br />
	echo $result;<br />
	?&gt;<br />
	&lt;/div&gt;<br />
&lt;?php  }?&gt;<br />
<br />
	&lt;br&gt;<br />
	<br />
<br />
&lt;?php if (isset($qry_results)) {<br />
?&gt;<br />
<br />
&lt;div id=&quot;results&quot;&gt;<br />
<br />
&lt;!-- results listing --&gt;<br />
<br />
	&lt;?php foreach ($qry_results as $_key =&gt; $_row){<br />
		$last_domain = $domain_name;<br />
		extract($_row);<br />
		if ($show_query_scores == 0) {<br />
			$weight = '';<br />
		} else {<br />
			$weight = &quot;[$weight%]&quot;; <br />
		}<br />
		?&gt;<br />
		&lt;?php  if ($domain_name==$last_domain &amp;&amp; $merge_site_results == 1 &amp;&amp; $domain == &quot;&quot;) {?&gt;<br />
		&lt;div class=&quot;idented&quot;&gt;<br />
		&lt;?php }?&gt;<br />
		&lt;b&gt;&lt;?php print $num?&gt;.&lt;/b&gt; &lt;?php print $weight?&gt;<br />
		&lt;a href=&quot;&lt;?php print $url?&gt;&quot; class=&quot;title&quot;&gt;	&lt;?php print ($title?$title:$sph_messages['Untitled'])?&gt;&lt;/a&gt;&lt;br/&gt;<br />
		&lt;div class=&quot;description&quot;&gt;&lt;?php print $fulltxt?&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;url&quot;&gt;&lt;?php print $url2?&gt; - &lt;?php print $page_size?&gt;&lt;/div&gt;<br />
		&lt;?php  if ($domain_name==$last_domain &amp;&amp; $merge_site_results == 1 &amp;&amp; $domain == &quot;&quot;) {?&gt;<br />
			[ &lt;a href=&quot;&lt;?php print 'index.php?nav=suchen&amp;query='.quote_replace(addmarks($query)).'&amp;search=1&amp;results='.$results_per_page.'&amp;domain='.$domain_name?&gt;&quot;&gt;More results from &lt;?php print $domain_name?&gt;&lt;/a&gt; ]<br />
			&lt;/div class=&quot;idented&quot;&gt;<br />
		&lt;?php }?&gt;<br />
		&lt;br/&gt;<br />
	&lt;?php  }?&gt;<br />
 &lt;/div&gt;<br />
&lt;?php }?&gt;<br />
<br />
&lt;!-- links to other result pages--&gt;<br />
&lt;?php if (isset($other_pages)) {<br />
	if ($adv==1) {<br />
		$adv_qry = &quot;&amp;adv=1&quot;;<br />
	}<br />
	if ($type != &quot;&quot;) {<br />
		$type_qry = &quot;&amp;type=$type&quot;;<br />
	}<br />
?&gt;<br />
&lt;div id=&quot;other_pages&quot;&gt;<br />
&lt;?php print $sph_messages[&quot;Result page&quot;]?&gt;:<br />
&lt;?php if ($start &gt;1){?&gt;<br />
&lt;a href=&quot;&lt;?php print '/suche/'.quote_replace(addmarks($query)).'-'.$prev.'-1-'.'10'.'-'.'and'.'.html'?&gt;&quot;&gt;&lt;?php print $sph_messages['Previous']?&gt;&lt;/a&gt;<br />
&lt;?php }?&gt;<br />
<br />
&lt;?php foreach ($other_pages as $page_num) {<br />
if ($page_num !=$start){?&gt;<br />
&lt;a href=&quot;&lt;?php print '/suche/'.quote_replace(addmarks($query)).'-'.$page_num.'-'.'1'.'-'.'10'.'-'.'and'.'.html'?&gt;&quot;&gt;&lt;?php print $page_num?&gt;&lt;/a&gt;<br />
&lt;?php } else {?&gt;<br />
&lt;b&gt;&lt;?php print $page_num?&gt;&lt;/b&gt;<br />
&lt;?php }?&gt;<br />
&lt;?php }?&gt;<br />
&lt;?php if ($next &lt;= $pages){?&gt;<br />
&lt;a href=&quot;&lt;?php print '/suche/'.quote_replace(addmarks($query)).'-'.$next.'-1-10-and.html'?&gt;&quot;&gt;&lt;?php print $sph_messages['Next']?&gt;&lt;/a&gt;<br />
&lt;?php }?&gt;<br />
<br />
&lt;/div&gt;<br />
<br />
<br />
&lt;?php }?&gt;<br />
<br />
<br />
&lt;div class=&quot;divline&quot;&gt;<br />
&lt;/div&gt;<br />
&lt;div id=&quot;powered_by&quot;&gt;<br />
&lt;!--If you want to remove this, please donate to the project at [<a href="http://www.sphider.eu/donate.php--&gt" rel="nofollow" >www.sphider.eu</a>]; 		<br />
&lt;br&gt;&lt;center&gt;&lt;?php poweredby()?&gt;&lt;/center&gt;<br />
&lt;/div&gt;]]></description>
            <dc:creator>teh_fr33z3r</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Thu, 14 Aug 2008 16:28:39 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,4750#msg-4750</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,4750#msg-4750</link>
            <description><![CDATA[ I included the sql code for this.  Copy that into the SQL tab of phpmyadmin.]]></description>
            <dc:creator>readyman</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Wed, 13 Aug 2008 23:35:04 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,4743#msg-4743</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,4743#msg-4743</link>
            <description><![CDATA[ Thanks readyman! <br />
<br />
Doesn't seem to work for me with sphider 1,5+. Although I ain't got that many rows in my DB for now and I really like the word cloud. Maybe my developer can build in some cache function to lower the demanding server-requests.<br />
<br />
Thanks for your time.]]></description>
            <dc:creator>ability</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Wed, 13 Aug 2008 17:25:51 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,4735#msg-4735</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,4735#msg-4735</link>
            <description><![CDATA[ Here's what I did:<br />
<br />
DB:<br />
<br />
CREATE TABLE IF NOT EXISTS `popular_searches` (<br />
  `id` int(11) unsigned NOT NULL auto_increment,<br />
  `query` varchar(255) NOT NULL default '',<br />
  `count` int(11) unsigned NOT NULL default '1',<br />
  PRIMARY KEY  (`id`)<br />
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=114 ;<br />
<br />
added to top of search.php:<br />
<br />
$update_pop = mysql_query(&quot;SELECT * FROM &quot;.$mysql_table_prefix.&quot;popular_searches WHERE query='$query'&quot;) or die (&quot;Bad query: &quot;.mysql_error());<br />
<br />
if(mysql_num_rows($update_pop == 1)) {<br />
       mysql_query(&quot;UPDATE &quot;.$mysql_table_prefix.&quot;popular_searches SET count = count+1 WHERE query='$query'&quot;) or die (&quot;Bad query: &quot;.mysql_error());<br />
}<br />
<br />
added to commonfuncs.php:<br />
<br />
function seoURL($str) {<br />
	$placeholders = array(':', '\'', ')', '(', '\\', ',', ';', '{', '}', '*', '^', '-', '~', '`', '=', '|', '&gt;', '&lt;', '?', '-', '!');<br />
	$str = str_replace($placeholders, &quot;&quot;, $str);<br />
	return str_replace(&quot; &quot;, &quot;+&quot;, $str);<br />
}<br />
<br />
then add this wherever you want to display keywords:<br />
<br />
$result = mysql_query(&quot;SELECT * FROM popular_searches ORDER BY RAND() LIMIT 10&quot;) or die(&quot;MySQL Error: &quot;.mysql_error());<br />
while($row = mysql_fetch_array($result)) {<br />
<br />
print &quot;&amp;bull; &lt;a href=\&quot;&quot;. seoURL($row['query']) . &quot;.html\&quot; class=\&quot;style6\&quot;&gt;&quot;. $row['query'] .&quot;&lt;/a&gt; &quot;;<br />
}<br />
<br />
Probably not the most effective way of doing this because each time the user clicks onto the next page it updates the count, but I found it works for me.  Keep in mind that I changed my .htaccess to append .html onto the end of the rewritten urls.]]></description>
            <dc:creator>readyman</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Wed, 13 Aug 2008 03:21:50 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,4734#msg-4734</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,4734#msg-4734</link>
            <description><![CDATA[ Yes I suppose it will be very demanding for the server to list the search cloud. For the moment I have to use it to get google to index search queries. I don't know how to limit the DB usage, if you have a solution it would be more than appreciated. As my PHP skills are very limited code examples are appreciated :)<br />
<br />
If I can help in any way just tell me.<br />
<br />
Regards<br />
Ability]]></description>
            <dc:creator>ability</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Wed, 13 Aug 2008 01:34:11 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,4694#msg-4694</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,4694#msg-4694</link>
            <description><![CDATA[ Thank you for your kind words... I did try the search cloud mod, [<a href="http://www.sphider.eu/forum/read.php?3,1471" rel="nofollow" >www.sphider.eu</a>], but the problem with it is that when you use the query_log to count, group, and display the links when dealing with a large database. <br />
<br />
Basically it would send my server load through the roof and crash my server when dealing with a query log of 100,000+ rows, which posed a major server stability problem considering that I have at a minimum of 20,000 rows added to that table per day.  On a side note: the search cloud mod worked somewhat fast with a query_log database under 80-90,000 rows.<br />
<br />
I went ahead and changed around how the sphider logged the search queries by created a separate table (popular_searches) that would +1, to the matching query count, if the search query was found in the popular_searches table (I created this table).  From what I was witnessing the SaveToLog function (present in commonfuncs.php) just adds another row for the query regardless if the query was present or not in the table... basically you end up with query_log full of multiple queries, with the EXACT same query over and over, that could have been updated by verifying that the current query was in the popular_query db and it if was already added to the popular_query table: thus, update the count by +1.<br />
<br />
In my case I utilize both the newly created database, popular_searches, as well as the query_log to show both what was recently searched for as well as what queries are the most popular.  Probably not the best method, but it works.   <br />
<br />
It's a little late tonight, again :-), so I am not going into much detail about the actual db structure and the php code that goes along with it (although it is very simple!)... if needed please let me know and I will provide this info the best I can.]]></description>
            <dc:creator>readyman</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Fri, 08 Aug 2008 10:55:12 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,4680#msg-4680</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,4680#msg-4680</link>
            <description><![CDATA[ readyman Wrote:<br />
-------------------------------------------------------<br />
&gt; Not trying to take over your thread by any means,<br />
&gt; but I thought I would throw in a dirty little way<br />
&gt; to get SEO urls.<br />
&gt; <br />
&gt; .htaccess file:<br />
&gt; <br />
&gt; <br />
&gt; Options +FollowSymLinks<br />
&gt; RewriteEngine On <br />
&gt; RewriteCond %{QUERY_STRING}<br />
&gt; ^query=([^&amp;]+)&amp;search=1$<br />
&gt; RewriteRule ^search\.php$ /keywords/%1? <br />
&gt; RewriteCond %{QUERY_STRING}<br />
&gt; ^query=([^&amp;]+)&amp;search=1&amp;start=([0-9]+)$<br />
&gt; RewriteRule ^search\.php$ /keywords/%1/%2? <br />
&gt;  <br />
&gt; RewriteRule ^keywords/([^/]+)/([0-9]+)$<br />
&gt; /search.php?query=$1&amp;search=1&amp;start=$2&amp;a=1 <br />
&gt; RewriteRule ^keywords/(.*)$<br />
&gt; /search.php?query=$1&amp;search=1&amp;a=1 <br />
&gt; <br />
&gt; <br />
&gt; In the initial search this will take the query &quot;my<br />
&gt; search&quot; and produce the resulting rewritten url:<br />
&gt; /keywords/my+search<br />
&gt; <br />
&gt; once you click to go to the next page it will<br />
&gt; accept the query variable as well as the start<br />
&gt; variable... so the rewritten url will look like<br />
&gt; this: /keywords/my+search/2<br />
&gt; <br />
&gt; The best thing about this is that it will 301<br />
&gt; redirect the old urls into the rewritten urls.<br />
&gt; <br />
&gt; I just typed this up pretty quickly and left out<br />
&gt; some small parts... if you guys can't figure it<br />
&gt; out please let me know if you need more info.<br />
<br />
Your modifications works perfect. Easy to implent and every search is converted. I suggest that you use this with &quot;Search cloud&quot; mod to get your search queries indexed by google.]]></description>
            <dc:creator>ability</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Wed, 06 Aug 2008 00:21:11 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,4664#msg-4664</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,4664#msg-4664</link>
            <description><![CDATA[ Not trying to take over your thread by any means, but I thought I would throw in a dirty little way to get SEO urls.<br />
<br />
.htaccess file:<br />
<br />
&lt;IfModule mod_rewrite.c&gt;<br />
Options +FollowSymLinks<br />
RewriteEngine On <br />
RewriteCond %{QUERY_STRING} ^(query=.*)%20(.*)<br />
RewriteRule ^search\.php$ search.php?%1+%2 [N]<br />
 <br />
RewriteCond %{QUERY_STRING} ^query=([^&amp;]+)&amp;search=1$<br />
RewriteRule ^search\.php$ /%1.html? [R=301,L]<br />
RewriteCond %{QUERY_STRING} ^query=([^&amp;]+)&amp;search=1&amp;start=([0-9]+)$<br />
RewriteRule ^search\.php$ /%2/%1.html? [R=301,L]<br />
 <br />
RewriteRule ^(.*)%20(.*) /$1+$2 [R=301,L]<br />
 <br />
RewriteRule ^keywords/([^/]+)/([0-9]+)$ /search.php?query=$1&amp;search=1&amp;start=$2&amp;a=1 [L]<br />
RewriteRule ^keywords/(.*)$ /search.php?query=$1&amp;search=1&amp;a=1 [L]<br />
&lt;/IfModule&gt;<br />
<br />
In the initial search this will take the query &quot;my search&quot; and produce the resulting rewritten url: /keywords/my+search<br />
<br />
once you click to go to the next page it will accept the query variable as well as the start variable... so the rewritten url will look like this: /keywords/my+search/2<br />
<br />
The best thing about this is that it will 301 redirect the old urls into the rewritten urls.<br />
<br />
I just typed this up pretty quickly and left out some small parts... if you guys can't figure it out please let me know if you need more info.]]></description>
            <dc:creator>readyman</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Tue, 29 Jul 2008 06:27:36 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,4598#msg-4598</guid>
            <title>Re: Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,4598#msg-4598</link>
            <description><![CDATA[ Congrulations...<br />
This work fine!]]></description>
            <dc:creator>celsojr100</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Sat, 19 Jul 2008 18:49:32 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,4568,4568#msg-4568</guid>
            <title>Search Engine Friendly URLS - The Real Fix!!</title>
            <link>http://www.sphider.eu/forum/read.php?3,4568,4568#msg-4568</link>
            <description><![CDATA[ ok, i saw that there was another post on how to fix the URLS so that they could become SEF, but that fix didn't seem to work for me. If anyone wants search engine friendly urls please read this tutorial. here you guys go....<br />
<br />
<br />
SEF URLS:<br />
(script installation - easy)<br />
All files that need to be edited pertain only to your spider folder. <br />
[<a href="http://marcusecompressor.com/search" rel="nofollow" >marcusecompressor.com</a>]<br />
<br />
---EDITING---<br />
<br />
open or create a file called .htaccess and rewrite everything with this:<br />
###################<br />
RewriteEngine on<br />
Options +FollowSymLinks<br />
Options +SymlinksIfOwnerMatch<br />
RewriteRule ^search([^/]+)-([0-9]+)\.html$ /search/search.php?query=$1&amp;search=$2  [QSA,L]<br />
RewriteRule ^search([^/]+)-([0-9]+)-([0-9]+)-([0-9]+)-([^/]+)\.html$ /search/search.php?query=$1&amp;start=$2&amp;search=$3&amp;results=$4&amp;type=$5  [QSA,L]<br />
#####################<br />
<br />
<br />
Notice the folder 'search' if your folder has a different name, change it accordingly.<br />
<br />
Lastly, open search-results.html (should be in your template folder - This fix is only for standard template)<br />
<br />
Find the lines:<br />
<br />
<br />
	&lt;div id=&quot;other_pages&quot;&gt;<br />
	&lt;?php print $sph_messages[&quot;Result page&quot;]?&gt;:<br />
	&lt;?php if ($start &gt;1){?&gt;<br />
				&lt;a href=&quot;&lt;?php print 'http://www.marcusecompressor.com/search/search'.quote_replace(addmarks($query)).'-1-'.$prev.'-'.'10'.'-'.$type_qry.'.html'?&gt;&quot;&gt;&lt;?php print $sph_messages['Previous']?&gt;&lt;/a&gt;<br />
	&lt;?php  }?&gt;	<br />
<br />
	&lt;?php  foreach ($other_pages as $page_num) {<br />
				if ($page_num !=$start){?&gt;<br />
					&lt;a href=&quot;&lt;?php print 'http://www.marcusecompressor.com/search/search.php?query='.quote_replace(addmarks($query)).'&amp;start='.$page_num.'&amp;search=1&amp;results='.$results_per_page.$type_qry.$adv_qry?&gt;&quot;&gt;&lt;?php print $page_num?&gt;&lt;/a&gt;<br />
				&lt;?php } else {?&gt;	<br />
					&lt;b&gt;&lt;?php print $page_num?&gt;&lt;/b&gt;<br />
				&lt;?php  }?&gt;	<br />
	&lt;?php  }?&gt;<br />
<br />
	&lt;?php if ($next &lt;= $pages){?&gt;	<br />
			&lt;a href=&quot;&lt;?php print 'http://www.marcusecompressor.com/search/search.php?query='.quote_replace(addmarks($query)).'&amp;start='.$next.'&amp;search=1&amp;results='.$results_per_page.$type_qry.$adv_qry?&gt;&quot;&gt;&lt;?php print $sph_messages['Next']?&gt;&lt;/a&gt;<br />
	&lt;?php  }?&gt;	<br />
<br />
	&lt;/div&gt;<br />
<br />
<br />
<br />
Replace with:<br />
<br />
	&lt;div id=&quot;other_pages&quot;&gt;<br />
	&lt;?php print $sph_messages[&quot;Result page&quot;]?&gt;:<br />
	&lt;?php if ($start &gt;1){?&gt;<br />
				&lt;a href=&quot;&lt;?php print 'http://www.marcusecompressor.com/search/search'.quote_replace(addmarks($query)).'-'.$prev.'-1-'.'10'.'-'.'and'.'.html'?&gt;&quot;&gt;&lt;?php print $sph_messages['Previous']?&gt;&lt;/a&gt;<br />
	&lt;?php  }?&gt;	<br />
<br />
	&lt;?php  foreach ($other_pages as $page_num) {<br />
				if ($page_num !=$start){?&gt;<br />
					&lt;a href=&quot;&lt;?php print 'http://www.marcusecompressor.com/search/search'.quote_replace(addmarks($query)).'-'.$page_num.'-'.'1'.'-'.'10'.'-'.'and'.'.html'?&gt;&quot;&gt;&lt;?php print $page_num?&gt;&lt;/a&gt;<br />
				&lt;?php } else {?&gt;	<br />
					&lt;b&gt;&lt;?php print $page_num?&gt;&lt;/b&gt;<br />
				&lt;?php  }?&gt;	<br />
	&lt;?php  }?&gt;<br />
	&lt;?php if ($next &lt;= $pages){?&gt;	<br />
			&lt;a href=&quot;&lt;?php print 'http://www.marcusecompressor.com/search/search'.quote_replace(addmarks($query)).'-'.$next.'-1-10-and.html'?&gt;&quot;&gt;&lt;?php print $sph_messages['Next']?&gt;&lt;/a&gt;<br />
	&lt;?php  }?&gt;	<br />
<br />
	&lt;/div&gt;<br />
<br />
<br />
this should give you sef urls, if you have any questions feel free to email me. good luck!]]></description>
            <dc:creator>canad1an</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Mon, 14 Jul 2008 21:15:34 +0300</pubDate>
        </item>
    </channel>
</rss>
