<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Module: Search Engine Friendly URL&#039;s</title>
        <description>I excluded the addons prefix from the rewrite because of issues with modules like embedded_images. I did this as a quickfix because I&#039;m still looking how I can fix this nicely.

[hr]


This modules creates search engine friendly urls for almost (except search) every url in phorum. The subject of messages are in all the message links. The forum name and the username replacements are temporarily removed because of unfound url creations.

This module requires Apache rewrite rules. Apache is a widely used
web server software package. If your webserver is not an Apache server,
then you will not be able to use this module. If you are unsure, then
check with your hosting provider.

To setup the rewrite rules, create or update the file &quot;.htaccess&quot; inside
your Phorum installation directory (mind the starting dot). 
The rewrite rules that have to be added to this file are:

[code]
 RewriteEngine On

 # READ RULES
 RewriteRule ^([0-9]*)/([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$ read.php?$1,$2,$3,$4
 RewriteRule ^([0-9]*)/([0-9]*)/([0-9]*)/(.*)$ read.php?$1,$2,$3
 
 RewriteRule ^([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$ read.php?$1,$2,$3
 RewriteRule ^([0-9]*)/([0-9]*)/(.*)$ read.php?$1,$2
 RewriteRule ^([0-9]*)/([0-9]*)$ read.php?$1,$2
 
 # DEFAULT RULES
 RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$ $1.php?$2,$3,$4,$5
 RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$ $1.php?$2,$3,$4
 RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-/:\.?]*)$ $1.php?$2,$3
 RewriteRule ^([a-z]*)/([0-9]*)$ $1.php?$2
 RewriteRule ^([a-z]+)$ $1.php

[/code]

[code]
Changelog:
----------
2009-06-15 v1.0.7
	- Excluded addon prefix from sef_url because of problems with modules like embedded_images

2009-03-04 v1.0.6
	- Removed multiple php notice generators 

2009-03-04 v1.0.5
	- Changed default rule to one that makes sure the
	- Updated the version number in the info file
	- Added check to breadcrumbs so when there are none the is no php notice of warning...

2008-12-08 v1.0.4
	- Replaced all % to _ to make sure all links will still work, even if translations are not entirely correct

2008-12-08 v1.0.3
	- Added check if page list exists

2008-12-07 v1.0.2
	- Removed css from url translation because of broken url structures
	- Temporarily removed %username% from url&#039;s because of issues with unfound links
	- Temporarily removed forum %name% from url&#039;s because of issues with unfound links

2008-12-05 v1.0.1
	- Used old url structure for search queries to make sure it won&#039;t use too much data from the 
	  mod_rewrite rules
	- Changed all function names from phorum_mod_sef_urls to sef_urls
	- Added the name of the forum after the list url
	- Added the username int the profile url
	- Added message subject replacement int prev/next urls
	- Removed several deprecated functions 

2008-12-04 v1.0.0
	- Initial development release
[/code]</description>
        <link>https://www.phorum.org/support/read.php?62,135242,135242#msg-135242</link>
        <lastBuildDate>Sun, 13 Sep 2026 16:11:27 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,155757#msg-155757</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,155757#msg-155757</link>
            <description><![CDATA[ I have a question How to get the RSS links to be the same as the SEF links ?<br />
Maybe this could be a simple htaccess fix also EXAMPLE: <br />
<b>I need this link in rss </b> [<a href="http://www.shtf.support/2/646/646/_subject_#msg-646" target="_blank"  rel="nofollow">www.shtf.support</a>] <br />
<b>made to this link that is the forum link :</b> [<a href="http://www.shtf.support/2/646/tornadoes_again_--_videos" target="_blank"  rel="nofollow">www.shtf.support</a>]]]></description>
            <dc:creator>shtfsu</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sun, 17 May 2015 13:01:37 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,155066#msg-155066</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,155066#msg-155066</link>
            <description><![CDATA[ The other thing to think about is when you edit the subject it also causes the URL change.<br />
And you result with two different URLs leading to the same page.<br />
Would have been nice to have a redirect to the current version of the page (moved permanently).<br />
Otherwise google won&#039;t be happy with multiple URLs leading to a page with the same content.<br />
<br />
ADDED:<br />
Maybe something like this?<br />
<br />
[code=&quot;php&quot;]<br />
function sef_urls_read($arrList, $message_id = 0)<br />
{<br />
	global $PHORUM;<br />
	<br />
	$read_url_template_thread = phorum_get_url(PHORUM_READ_URL, &#039;%thread_id%&#039;);<br />
        $read_url_template_both   = phorum_get_url(PHORUM_READ_URL, &#039;%thread_id%&#039;,&#039;%message_id%&#039;);<br />
        $read_page_url_template   = phorum_get_url(PHORUM_READ_URL, &#039;%thread_id%&#039;,&#039;page=%page_num%&#039;, &#039;_subject_&#039;);<br />
	<br />
	if($message_id &amp;&amp; isset($arrList[$message_id])){<br />
		$url = sef_urls_create_read_link($arrList[$message_id], $read_url_template_thread, $read_url_template_both);<br />
		if(!isset($_SERVER[&quot;REQUEST_SCHEME&quot;]))<br />
			$_SERVER[&quot;REQUEST_SCHEME&quot;] = &quot;http&quot;;<br />
		if($url != $_SERVER[&quot;REQUEST_SCHEME&quot;].&quot;://&quot;.$_SERVER[&quot;HTTP_HOST&quot;].$_SERVER[&quot;REQUEST_URI&quot;]){<br />
			header(&quot;HTTP/1.1 301 Moved Permanently&quot;);<br />
			header(&quot;Location:&quot;.$url);<br />
			exit(0);<br />
		}<br />
	}<br />
	<br />
        $edit_url_template        = phorum_get_url(PHORUM_POSTING_URL, &#039;%action_id%&#039;, &#039;%message_id%&#039;);<br />
        $reply_url_template       = phorum_get_url(PHORUM_REPLY_URL, &#039;%thread_id%&#039;, &#039;%message_id%&#039;);<br />
        $reply_url_template_quote = phorum_get_url(PHORUM_REPLY_URL, &#039;%thread_id%&#039;, &#039;%message_id%&#039;,&#039;quote=1&#039;);<br />
        $profile_url_template	  = phorum_get_url(PHORUM_PROFILE_URL, &#039;%forum_id%&#039;, &#039;%user_id%&#039;, &#039;_username_&#039;);<br />
....<br />
[/code]]]></description>
            <dc:creator>deepvision</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 04 Jun 2014 12:25:51 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,155062#msg-155062</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,155062#msg-155062</link>
            <description><![CDATA[ Hello Martijn<br />
<br />
Thank you for the wonderful module! :)<br />
I had a problem with the module at first because of the following setting of my .htaccess file:<br />
<pre class="bbcode">
Options +MultiViews</pre>
<br />
It cased all requests to be redirected to /index/<br />
<br />
But when I changed it to <br />
<br />
<pre class="bbcode">
Options -MultiViews</pre>
<br />
and it fixed the problem.<br />
<br />
I thought maybe my experience would be helpful for someone having problems with the module.<br />
<br />
Thank again for the very useful module!]]></description>
            <dc:creator>deepvision</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 04 Jun 2014 03:13:39 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,154966#msg-154966</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,154966#msg-154966</link>
            <description><![CDATA[ Hi there<br />
We found some strange bug: the SEO URLs Modul destroyed the Phorum Search Result links. At the search page is not a global phorum id set ($PHORUM[&#039;forum_id&#039;] and its needed to set the forum_id manually on the link generator, here is a Fix for the Problem:<br />
[code=&quot;php&quot;]<br />
function sef_urls_search($arrList)<br />
{<br />
// XXX&gt; lka: Forum ID wird nicht in den URLS mitgegeben, gefixt<br />
        foreach($arrList as $intID =&gt; $arrMessage)<br />
        {<br />
                $read_url_template_thread = phorum_get_url(PHORUM_FOREIGN_READ_URL,$arrMessage[&#039;forum_id&#039;],&#039;%thread_id%&#039;);<br />
                $read_url_template_both   = phorum_get_url(PHORUM_FOREIGN_READ_URL,$arrMessage[&#039;forum_id&#039;],&#039;%thread_id%&#039;,&#039;%message_id%&#039;);<br />
// &lt;XXX<br />
                $strSubject = sef_urls_convert($arrMessage[&#039;subject&#039;]);<br />
<br />
                $arrList[$intID][&quot;URL&quot;][&quot;READ&quot;] = sef_urls_create_read_link($arrMessage, $read_url_template_thread, $read_url_template_both);<br />
        }<br />
        return $arrList;<br />
}<br />
[/code]<br />
Sincere regards, Katy]]></description>
            <dc:creator>KatyWings</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Thu, 06 Mar 2014 03:54:45 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,154930#msg-154930</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,154930#msg-154930</link>
            <description><![CDATA[ This is a great module that could really improve hits from Google, but it lacks handling of cyrillic letters. I did a sample modification that could help to properly convert cyrillic to latin in URLs. This should work for Bulgarian and Russian.<br />
<br />
You need a new function inside:<br />
<br />
[code=&quot;php&quot;]<br />
function cyr2lat($str)<br />
{<br />
    $tr = array(<br />
    &quot;А&quot;=&gt;&quot;a&quot;, &quot;Б&quot;=&gt;&quot;b&quot;, &quot;В&quot;=&gt;&quot;v&quot;, &quot;Г&quot;=&gt;&quot;g&quot;, &quot;Д&quot;=&gt;&quot;d&quot;,<br />
    &quot;Е&quot;=&gt;&quot;e&quot;, &quot;Ё&quot;=&gt;&quot;yo&quot;, &quot;Ж&quot;=&gt;&quot;zh&quot;, &quot;З&quot;=&gt;&quot;z&quot;, &quot;И&quot;=&gt;&quot;i&quot;, <br />
    &quot;Й&quot;=&gt;&quot;j&quot;, &quot;К&quot;=&gt;&quot;k&quot;, &quot;Л&quot;=&gt;&quot;l&quot;, &quot;М&quot;=&gt;&quot;m&quot;, &quot;Н&quot;=&gt;&quot;n&quot;, <br />
    &quot;О&quot;=&gt;&quot;o&quot;, &quot;П&quot;=&gt;&quot;p&quot;, &quot;Р&quot;=&gt;&quot;r&quot;, &quot;С&quot;=&gt;&quot;s&quot;, &quot;Т&quot;=&gt;&quot;t&quot;, <br />
    &quot;У&quot;=&gt;&quot;u&quot;, &quot;Ф&quot;=&gt;&quot;f&quot;, &quot;Х&quot;=&gt;&quot;h&quot;, &quot;Ц&quot;=&gt;&quot;tz&quot;, &quot;Ч&quot;=&gt;&quot;ch&quot;, <br />
    &quot;Ш&quot;=&gt;&quot;sh&quot;, &quot;Щ&quot;=&gt;&quot;sht&quot;, &quot;Ъ&quot;=&gt;&quot;y&quot;, &quot;Ы&quot;=&gt;&quot;y&quot;, &quot;Ь&quot;=&gt;&quot;y&quot;, <br />
    &quot;Э&quot;=&gt;&quot;e&quot;, &quot;Ю&quot;=&gt;&quot;u&quot;, &quot;Я&quot;=&gt;&quot;ya&quot;, &quot;а&quot;=&gt;&quot;a&quot;, &quot;б&quot;=&gt;&quot;b&quot;, <br />
    &quot;в&quot;=&gt;&quot;v&quot;, &quot;г&quot;=&gt;&quot;g&quot;, &quot;д&quot;=&gt;&quot;d&quot;, &quot;е&quot;=&gt;&quot;e&quot;, &quot;ё&quot;=&gt;&quot;yo&quot;, <br />
    &quot;ж&quot;=&gt;&quot;zh&quot;, &quot;з&quot;=&gt;&quot;z&quot;, &quot;и&quot;=&gt;&quot;i&quot;, &quot;й&quot;=&gt;&quot;j&quot;, &quot;к&quot;=&gt;&quot;k&quot;, <br />
    &quot;л&quot;=&gt;&quot;l&quot;, &quot;м&quot;=&gt;&quot;m&quot;, &quot;н&quot;=&gt;&quot;n&quot;, &quot;о&quot;=&gt;&quot;o&quot;, &quot;п&quot;=&gt;&quot;p&quot;, <br />
    &quot;р&quot;=&gt;&quot;r&quot;, &quot;с&quot;=&gt;&quot;s&quot;, &quot;т&quot;=&gt;&quot;t&quot;, &quot;у&quot;=&gt;&quot;u&quot;, &quot;ф&quot;=&gt;&quot;f&quot;, <br />
    &quot;х&quot;=&gt;&quot;h&quot;, &quot;ц&quot;=&gt;&quot;tz&quot;, &quot;ч&quot;=&gt;&quot;ch&quot;, &quot;ш&quot;=&gt;&quot;sh&quot;, &quot;щ&quot;=&gt;&quot;sht&quot;, <br />
    &quot;ъ&quot;=&gt;&quot;y&quot;, &quot;ы&quot;=&gt;&quot;y&quot;, &quot;ь&quot;=&gt;&quot;&quot;, &quot;э&quot;=&gt;&quot;e&quot;, &quot;ю&quot;=&gt;&quot;yu&quot;, <br />
    &quot;я&quot;=&gt;&quot;ya&quot;);<br />
  return strtr($str,$tr);<br />
}<br />
[/code]<br />
<br />
Then you have to patch sef_urls_convert to call the above function to make sure that cyrillic characters are translated:<br />
<br />
[code=&quot;php&quot;]<br />
function sef_urls_convert($strValue)<br />
{<br />
<br />
	// Patch to handle cyrillics<br />
	$strValue = cyr2lat($strValue);<br />
	// End of patch<br />
	<br />
	$strValue = preg_replace(&quot;/([^a-zA-Z0-9\-_\ ])/&quot;, &quot;_&quot;, $strValue);<br />
	$strValue = preg_replace(&quot;/([\ ])/&quot;, &quot;_&quot;, $strValue);	<br />
	<br />
	$strValue = strtolower($strValue);<br />
	<br />
	return $strValue;<br />
}<br />
[/code]<br />
<br />
Hope this would be helpful.]]></description>
            <dc:creator>haz23</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 07 Feb 2014 14:47:16 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,154455#msg-154455</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,154455#msg-154455</link>
            <description><![CDATA[ Thanks Skinny, I already added this kind of stuff, but I wanted to be straigt-forward about the fix. ;)<br />
<br />
Anyway, this add-on is too buggy and requires far too much work to be useful for me. Too bad.]]></description>
            <dc:creator>remouk</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 15 Oct 2013 15:42:37 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,154447#msg-154447</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,154447#msg-154447</link>
            <description><![CDATA[ Yes, this add-on needs work to function correctly.  I&#039;ve been hacking at my sef_url.php file for a bit now to get it to work, and it now has a bunch of site specific stuff in it.<br />
<br />
Here is a better sef_urls_convert function with your change added:<br />
[code=&quot;php&quot;]<br />
function sef_urls_convert($strValue)<br />
{<br />
	setlocale(LC_ALL, &#039;en_US.UTF8&#039;);<br />
	$strValue = iconv(&#039;UTF-8&#039;, &#039;ASCII//TRANSLIT//IGNORE&#039;, $strValue);<br />
<br />
	$strValue = preg_replace(&#039;/([^a-z0-9\-])/i&#039;, &#039;-&#039;, $strValue);<br />
	$strValue = preg_replace(&#039;/-{2,}/&#039;, &#039;-&#039;, $strValue);<br />
	$strValue = preg_replace(&#039;/^-+|-+$/&#039;, &#039;&#039;, $strValue);<br />
<br />
	$strValue = strtolower($strValue);<br />
	//if (!strlen($strValue)) { $strValue = &#039;link&#039;; }<br />
<br />
	return $strValue;<br />
}<br />
[/code]<br />
IMO replacing characters with &quot;-&quot; instead of &quot;_&quot; is preferred, and now you won&#039;t have any repeated dashes, start/end with a dash, or empty value if you don&#039;t want it.]]></description>
            <dc:creator>Skinny</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 14 Oct 2013 14:38:04 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,154446#msg-154446</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,154446#msg-154446</link>
            <description><![CDATA[ In fact I have a lot of &quot;_subject_&quot; and it breaks everything... :/]]></description>
            <dc:creator>remouk</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 14 Oct 2013 11:38:03 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,154445#msg-154445</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,154445#msg-154445</link>
            <description><![CDATA[ <b>1) Question<br />
2) Fix for UTF-8 caracters!</b><br />
<br />
<b>1)</b> Question: half of the plugin doesn&#039;t work. Some urls are not working (previous/next topic for instance), some urls are badly generated but are working: those from index (annoucements and the forums list does not have their name, just the numbers), etc.<br />
<br />
Is it &quot;normal&quot; or not? (what may it come from?)<br />
<br />
<b>2)</b> Small fix for those who doesn&#039;t want their UTF-8 special caracters to be reduced to &quot;_&quot;. For example, I wanted &quot;àéù&quot; to be &quot;aeu&quot;. Here we go, in sef_urls.php change this:<br />
<br />
[code=&quot;php&quot;]<br />
function sef_urls_convert($strValue)<br />
{<br />
        $strValue = preg_replace(&quot;/([^a-zA-Z0-9\-_\ ])/&quot;, &quot;_&quot;, $strValue);<br />
        $strValue = preg_replace(&quot;/([\ ])/&quot;, &quot;_&quot;, $strValue);<br />
<br />
        $strValue = strtolower($strValue);<br />
<br />
        return $strValue;<br />
}<br />
[/code]<br />
<br />
To this (//EDIT before changes, // after):<br />
<br />
[code=&quot;php&quot;]<br />
function sef_urls_convert($strValue)<br />
{<br />
//EDIT<br />
        setlocale(LC_ALL, &#039;fr_FR.UTF8&#039;);<br />
        $strValue = iconv(&#039;UTF-8&#039;, &#039;ASCII//TRANSLIT//IGNORE&#039;, $strValue);<br />
//<br />
        $strValue = preg_replace(&quot;/([^a-zA-Z0-9\-_\ ])/&quot;, &quot;_&quot;, $strValue);<br />
        $strValue = preg_replace(&quot;/([\ ])/&quot;, &quot;_&quot;, $strValue);<br />
<br />
        $strValue = strtolower($strValue);<br />
<br />
        return $strValue;<br />
}<br />
[/code]<br />
<br />
Of course, change the &quot;fr_FR.UTF8&quot; into &quot;en_US.UTF8&quot; if your forum is in english, etc.]]></description>
            <dc:creator>remouk</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 14 Oct 2013 11:24:15 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,154330#msg-154330</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,154330#msg-154330</link>
            <description><![CDATA[ Installed.  Thanks for this!!  It works well, just a couple spots where _subject_ didn&#039;t get converted to the thread title (e.g, last post and a couple other mods I installed) but easy to fix.  For anyone having this problem, the simplest fix I found was to edit the sef_urls_start_output function of this mod (or another mod&#039;s file in certain cases).<br />
<br />
What you do is print_r($PHORUM); on the page with the problem so you can see the variables of the page and search that for _subject_ which will let you know the array keys and such, so then you just code up a loop to str_replace the _subject_ text with sef_urls_convert($PHORUM[&#039;find&#039;][&#039;with&#039;][&#039;print_r&#039;][&#039;subject&#039;]) and you&#039;re good to go.<br />
<br />
This mod really made me appreciate the phorum_get_url function.  Thanks again.]]></description>
            <dc:creator>Skinny</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 20 Sep 2013 20:20:26 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,152626#msg-152626</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,152626#msg-152626</link>
            <description><![CDATA[ When I turn this mod on it mostly works.  Like if I go to [myurl]/pm it will take me to the PM section.  But when I click on a forum it just reloads the home page.   Any ideas?]]></description>
            <dc:creator>agentabstract</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 21 Nov 2012 00:30:19 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,151979#msg-151979</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,151979#msg-151979</link>
            <description><![CDATA[ A note about hostgator.com <br />
<br />
I had issues with rewrite and addon domains. A simple fix is to add:<br />
<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteBase / <br />
rules here<br />
&lt;/IfModule&gt;<br />
<br />
<br />
An easy fix for CSS and other image issues is to use the BASE tag in the header:<br />
<br />
&lt;base href=&quot;[<a href="http://www.yoursite.com/&quot" target="_blank"  rel="nofollow">www.yoursite.com</a>]; /&gt; or something along those lines. It should save you from having to specify the full paths/urls to your images in css and themes.<br />
<br />
I guess each host has its quarks. =0D]]></description>
            <dc:creator>Fade2k</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 31 Aug 2012 08:38:54 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,151970#msg-151970</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,151970#msg-151970</link>
            <description><![CDATA[ Good Mod , Please Fix This To Support UTF-8 Languages , It Replace _____ to utf-8 words]]></description>
            <dc:creator>wolfsaman</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Thu, 30 Aug 2012 11:29:30 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,151538#msg-151538</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,151538#msg-151538</link>
            <description><![CDATA[ Is it possible by installing this module it broke my banner manager?  The banner only shows up now on the top level <a href="http://cratedigging.co" target="_blank"  rel="nofollow">http://cratedigging.co</a> whereas banners will not show now in my sub forums.  They used to show up in any sub-forum I chose.  Is there an edit to update this module or the banner manager module as to where the new urls are?]]></description>
            <dc:creator>rchecka</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 08 Jun 2012 14:22:17 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,151377#msg-151377</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,151377#msg-151377</link>
            <description><![CDATA[ ^Follow Up to my own question...<br />
<br />
I FIXED IT!   <br />
<br />
The Godaddy work around is this...<br />
<br />
.htaccess should contain this...<br />
<br />
<pre class="bbcode">
<b>#Fix Rewrite
Options -Multiviews</b>



 RewriteEngine On

 # READ RULES
 RewriteRule ^([0-9]*)/([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$ read.php?$1,$2,$3,$4
 RewriteRule ^([0-9]*)/([0-9]*)/([0-9]*)/(.*)$ read.php?$1,$2,$3
 
 RewriteRule ^([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$ read.php?$1,$2,$3
 RewriteRule ^([0-9]*)/([0-9]*)/(.*)$ read.php?$1,$2
 RewriteRule ^([0-9]*)/([0-9]*)$ read.php?$1,$2
 
 # DEFAULT RULES
 RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$ $1.php?$2,$3,$4,$5
 RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$ $1.php?$2,$3,$4
 RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-/:\.?]*)$ $1.php?$2,$3
 RewriteRule ^([a-z]*)/([0-9]*)$ $1.php?$2
 RewriteRule ^([a-z]+)$ $1.php</pre>
<br />
Note the #Fixrewrite at the top line.  Without it, on Godaddy hosting, this module will not work.]]></description>
            <dc:creator>rchecka</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 08 May 2012 12:48:35 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,151330#msg-151330</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,151330#msg-151330</link>
            <description><![CDATA[ My phorum site is <a href="http://cratedigging.co" target="_blank"  rel="nofollow">http://cratedigging.co</a><br />
<br />
Trying to get this to work at Godaddy&#039;s Linux hosting and it&#039;s pooping out.<br />
I called godaddy and they said it&#039;s custom work as expected.<br />
<br />
This is the only thing I have in my .htaccess file...<br />
<br />
AddHandler x-httpd-php5 .php<br />
AddHandler x-httpd-php .php4<br />
<br />
RewriteBase /<br />
 <br />
RewriteEngine On<br />
<br />
# READ RULES<br />
RewriteRule ^([0-9]*)/([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$ read.php?$1,$2,$3,$4<br />
RewriteRule ^([0-9]*)/([0-9]*)/([0-9]*)/(.*)$ read.php?$1,$2,$3<br />
<br />
RewriteRule ^([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$ read.php?$1,$2,$3<br />
RewriteRule ^([0-9]*)/([0-9]*)/(.*)$ read.php?$1,$2<br />
RewriteRule ^([0-9]*)/([0-9]*)$ read.php?$1,$2<br />
 <br />
 <br />
<br />
# DEFAULT RULES<br />
RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$ $1.php?$2,$3,$4,$5<br />
RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$ $1.php?$2,$3,$4<br />
RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-/:\.?]*)$ $1.php?$2,$3<br />
RewriteRule ^([a-z]*)/([0-9]*)$ $1.php?$2<br />
RewriteRule ^([a-z]+)$ $1.php<br />
<br />
My Godaddy server is using Php.5.2 but I could update to 5.3?<br />
<br />
Please help, I really want this to work.<br />
<br />
Thanks,]]></description>
            <dc:creator>rchecka</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 30 Apr 2012 15:03:57 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,149497#msg-149497</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,149497#msg-149497</link>
            <description><![CDATA[ nice work]]></description>
            <dc:creator>koko</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 27 Aug 2011 10:19:11 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,149337#msg-149337</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,149337#msg-149337</link>
            <description><![CDATA[ Just read this entire thread...big round of applause for Martijn whose done a sh*%load of work!!<br />
<br />
I just want to check one thing before going ahead with this install. will there be any issues if my site already uses an SEO-friendly .htaccess file in a different folder? I have integrated Phorum into my existing site, which has its own SEO-friendly URL rewrite addon. My existing .htaccess file is located in &gt;public_html. I was thinking of installing and activating Martijn&#039;s module and putting this .htaccess in &gt;public_html&gt;phorum. Would this be ok, or would this cause come catastrophic clash that will bring an end to all of humanity? <br />
<br />
Thanks, in advance, for your reply.<br />
<br />
Cheers<br />
<br />
Aaron]]></description>
            <dc:creator>PerfectPetFinder</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 05 Aug 2011 02:54:13 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,145057#msg-145057</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,145057#msg-145057</link>
            <description><![CDATA[ exact same thing happened to me a while back so I had to abandon this module :(<br />
<br />
Sad because its very useful.]]></description>
            <dc:creator>amnesia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 09 Jul 2010 11:03:35 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,143982#msg-143982</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,143982#msg-143982</link>
            <description><![CDATA[ I just tried this on my phorum install and I loved how it changed my thread urls however it broke my ability to send PM and it even broke my posts it would 404 as it attempted to redirect but still post the new thread.<br />
<br />
The problem appears to be it breaking the ability to use redirect.php, is there any simple work around for this?]]></description>
            <dc:creator>linuxuser</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 05 Apr 2010 04:51:49 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,143912#msg-143912</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,143912#msg-143912</link>
            <description><![CDATA[ Just to note, I&#039;ve disabled this module on my forum... search result links directing user to a specific message stopped working, some users complained about pm&#039;s not working... so...]]></description>
            <dc:creator>WiiCrazy</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 30 Mar 2010 14:10:59 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,143876#msg-143876</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,143876#msg-143876</link>
            <description><![CDATA[ Oh. Out of all the answers I was expecting that wasn&#039;t one of them! I suppose I was expecting there to be some kind of chaining of the phorum_custom_get_url calls. I&#039;m only a few days into my phorum learning curve.<br />
<br />
Looks like I&#039;m going to be re-working one of the modules to stop them conflicting - not being able to get the single sign on and friendly urls would be a bit of a show stopper.<br />
<br />
Thanks for your help,<br />
Paul.]]></description>
            <dc:creator>pauld</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 29 Mar 2010 11:39:53 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,143874#msg-143874</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,143874#msg-143874</link>
            <description><![CDATA[ The external authentication module is rewriting urls already, you can&#039;t have two modules rewriting urls, hence you won&#039;t be able to use the SEF module.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 29 Mar 2010 11:12:08 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,143873#msg-143873</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,143873#msg-143873</link>
            <description><![CDATA[ Hi,<br />
<br />
I&#039;m just going through getting phorum working correctly with my Drupal site. I&#039;ve got the Drupal sign on working with the external authentication mod. I&#039;m trying to get the SEF mod working now but when I enabled it I get the following error:<br />
<br />
<pre class="bbcode">
Cannot redeclare phorum_custom_get_url() previously declared in ....phorum_module_external_authentication.module:205.</pre>
<br />
Could anyone suggest how I go about fixing the problem (note I&#039;m not suggesting the issue lies with SEF)?<br />
<br />
Thanks,<br />
Paul]]></description>
            <dc:creator>pauld</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 29 Mar 2010 11:11:00 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,143602#msg-143602</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,143602#msg-143602</link>
            <description><![CDATA[ I&#039;ve edited the php file in it&#039;s original encoding than saved it as utf-8, maybe that caused a problem... I&#039;ve copied and pasted a similar code from someone else and it worked... Possibly I got a character encoding problem.<br />
<br />
Now I need to fix those urls in the main page which look like<br />
<br />
blah blah... /list/43<br />
blah blah... /list/41<br />
<br />
I&#039;m not sure what exactly does <b>html_entity_decode</b> so I can&#039;t comment on it though it would be nice if it could be solved with a built-in php function... .net for example have such a  culture setting as InvariantCulture.. So issuing lowercase on a string using invariant culture you can get it&#039;s English friendly equivalent... So I guess all accented characters are already defined and mapped to their english equivalent to accomplish this... Still it&#039;s very culture oriented actually... since for exampe Ç character maybe used in two different languages but for example lowercase version is still culture dependent... in a specific language it may map to ç and for another language maybe who knows to x (literally) <br />
<br />
Forums are places where everyone can contribute something so this is possible actually...]]></description>
            <dc:creator>WiiCrazy</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 15 Mar 2010 17:45:12 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,143601#msg-143601</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,143601#msg-143601</link>
            <description><![CDATA[ The whole idea of the str_replace looks okay to me. Maybe test that code snippet in a separate php script with some test string that you provide to see if it really works.<br />
<br />
The htmlentities example is a nice method to strip a lot of the basic accents in one go and without having to specify a character for each variant of a given accent. What you can play with, is making the decode call complete, to keep the UTF-8 characters intact: html_entity_decode($str, ENT_COMPAT, &#039;UTF-8&#039;).<br />
You&#039;d still have to take care of the characters that you cannot catch this way though. One strategy could be to lookup the html entities for those characters and add a separate str_replace() for those entities to get everything converted.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 15 Mar 2010 17:16:19 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,143600#msg-143600</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,143600#msg-143600</link>
            <description><![CDATA[ Hmm sorry, I actually wrote my message accidentally in the first page, looked at the last message probably, seen it was in 2008.. so I though it&#039;s abandoned.. shame on me.<br />
<br />
Actually I was just staring at the str_replace function since the regex function used there not accepting utf-8 characters without all bells and whistles.<br />
<br />
I&#039;ve tried below code to no avail... most probably missing something (saved the php file as utf-8 by the way)<br />
<br />
[code=&quot;php&quot;]<br />
	$search  = array(&#039;ç&#039;, &#039;ğ&#039;, &#039;ı&#039;, &#039;ö&#039;, &#039;ş&#039;, &#039;ü&#039;, &#039;Ç&#039;, &#039;Ğ&#039;, &#039;İ&#039;, &#039;Ö&#039;, &#039;Ş&#039;, &#039;Ü&#039;);<br />
	$replace = array(&#039;c&#039;, &#039;g&#039;,  &#039;i&#039;, &#039;o&#039;, &#039;s&#039;, &#039;u&#039;, &#039;C&#039;, &#039;G&#039;, &#039;I&#039;, &#039;O&#039;, &#039;S&#039;, &#039;U&#039;);<br />
	echo(&quot;$strValue &lt;br&gt;&quot;);<br />
	$strValue = str_replace($search, $replace, $strValue);<br />
	echo(&quot;$strValue &lt;br&gt;&quot;);<br />
[/code]<br />
<br />
And I&#039;ve found a code snippet to convert accents in the php manual for <a href="http://www.php.net/manual/en/function.str-replace.php" target="_blank"  rel="nofollow">str_replace</a><br />
<br />
[code=&quot;php&quot;]<br />
&lt;?php<br />
function replace_accents($str) {<br />
  $str = htmlentities($str, ENT_COMPAT, &quot;UTF-8&quot;);<br />
  $str = preg_replace(<br />
&#039;/&amp;([a-zA-Z])(uml|acute|grave|circ|tilde);/&#039;,<br />
&#039;$1&#039;,$str);<br />
  return html_entity_decode($str);<br />
}<br />
<br />
?&gt;<br />
[/code]<br />
<br />
This works for international characters but not for all of them (mainly characters like ö, ü which are already in 1252 codepage)  and the output is I guess is not utf-8 hence some characters show up as a strange question mark.<br />
<br />
Thanks for answering by the way, I should this dig up more...<br />
<br />
Is it enough to convert these characters only in the function <b>sef_urls_convert</b> without touching any regex in the .htaccess.. logically it seems to be enough but I&#039;m expecting the worst...<br />
<br />
ps: I&#039;ve found a working code btw.]]></description>
            <dc:creator>WiiCrazy</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 15 Mar 2010 17:04:47 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,143599#msg-143599</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,143599#msg-143599</link>
            <description><![CDATA[ I doubt that the module is really abandoned, since the people who wrote it are using it on their website.<br />
<br />
The difficulty with special characters is that there might be different character sets in play. So for implementing any real solid solution as part of the core module, some thinking and work would have to be done. Or support could be added for UTF-8 sites only, which should help all recent Phorum installations and the ones that started out with UTF-8 in the past.<br />
<br />
You could always do a hack in the current module for your own situation. If you already are a programmer, then this should not be too hard for you to handle. Take a look at the code in mods/sef_urls/sef_urls.php. That one should contain the translation of topics to URLs. There you will also find the code that translates all special characters to underscores. Right before the underscoring code, you can add your own code to change the special characters into ASCII characters.<br />
<br />
Your functional PHP friend is <a href="http://www.php.net/str_replace" target="_blank"  rel="nofollow">str_replace</a>()]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 15 Mar 2010 16:39:03 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,143598#msg-143598</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,143598#msg-143598</link>
            <description><![CDATA[ I have a problem with this module, my forum is in Turkish so most of the topics of course in Turkish... There are a lot of non-url friendly characters in Turkish like <br />
<br />
original character - equivalent in a url <br />
ç -&gt; c<br />
ğ -&gt; g<br />
ı -&gt; i<br />
ö-&gt; o<br />
ş-&gt; s<br />
ü-&gt; u<br />
<br />
their uppercase versions<br />
Ç-&gt;C<br />
Ğ-&gt;G<br />
İ-&gt;I<br />
Ö-&gt;O<br />
Ş-&gt;S<br />
Ü-&gt;U<br />
<br />
<br />
so with the sef_url module an original word such as &quot;çalıştırma&quot; becomes &quot;_al__t_rma&quot;, not so search engine or user friendly... there are a lot of cases like this.<br />
<br />
I&#039;m a developer too with skills in c, c#, java but I lack the necessary knowledge regarding phorum, php and all this. I&#039;m not expecting an update to this module since it seems to be abandoned long ago but at least I need a guidance as to how I can accomplish to integrate this change I need. Above example will become &quot;calistirma&quot; which google can already understand that it&#039;s the crippled form of the construct &quot;çalıştırma&quot;.<br />
<br />
Any clues?]]></description>
            <dc:creator>WiiCrazy</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 15 Mar 2010 16:18:43 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,135242,142230#msg-142230</guid>
            <title>Re: Module: Search Engine Friendly URL&#039;s</title>
            <link>https://www.phorum.org/support/read.php?62,135242,142230#msg-142230</link>
            <description><![CDATA[ the store files on disk module has the same links as the regular attachments. no other links are done for that.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 05 Dec 2009 05:37:20 -0600</pubDate>
        </item>
    </channel>
</rss>
