Introduction
============
If you found a bug or you want a new feature just contact me on this board
http://www.webmasterstalks.com/seo_4_smf-b46.0/This version of SEO for SMF is DOESN'T doing any MYSQL query and is based just on SMF variables.
I didn't hard test this version so please let me know if you have some BAD / GOOD experiences with it.
What is doing this mod for your forum ?
=====================================
1. It's adding beatifull urls. Your url will look like:
Board:
http://www.forum-example.com/the-board-name-id/Topic:
http://www.forum-example.com/the-board-name/the-topic-name-id.html2. Change your meta tags kewords and descriptions.
3. Create sitemap and url list for Google and Yahoo
4. Redirecting old pages (if you already had "Search engine friendly URLs") enabled.
Installation
============
Requirements
A working SMF 1.1RC3.
Apache with mod_rewrite enabled.
Optional
TinyPortal 0.96 mod installed.
Just install the mod from your admin section and add the content of htaccess.txt to your .htaccess or in your apache configuration.
Settings
You don't have anything to setup. Just enable "Search engine friendly URLs" from your admin area.
The mod is just beautifyng your urls, changeding your description and kewords metatags and creating a sitemap for google and yahoo.
The sitemap/urllist generator is based on SMF sitemap modified by Davilac (
http://www.davilac.net)
Misc.
=====
Because I don't do any mysql query I was forced to preserve id of boards and topics on urls:
Board:
http://www.forum-example.com/the-board-name-id/Topic:
http://www.forum-example.com/the-board-name/the-topic-name-id.htmlbut in this way is working vbSEO

Some apache servers need RewriteBase enabled in .htaccess. Delete # from start of RewriteBase to enable it.
If your forum is something like
http://www.forum-example.com/forum then modify your
RewriteBase in this way: RewriteBase /forum
For apache 1.3 some default installations have AllowOveride default on 'None'. To work with .htaccess change AllowOveride from 'None' to 'All'.
Don't forget to rename htaccess.txt to .htaccess (or add to your existing .htaccess) or add it in your apache configuration.
For support just contact me on
http://www.webmasterstalks.com/seo_4_smf-b46.0/Uninstalling
============
Uninstalling is working corectly with just a minor glitch: Is removing some "\" from some source code.
You have 2 ways to correct this problem:
1. To solve this problem just look in QueryString.php and replace this line (after uninstalling the mod):
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . $scripturl . '/' . strtr('$1', '&;=', '//,') . '.html$2\"'", $buffer);
with
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);
2. Or before installing the mod just add in Subs-packages after: (line 1515)
if (!$undo)
$working_search = $this_search;
else
$working_search = $this_clean_search;
this line:
if ($undo)
$working_search = strtr($working_search, array('$' => '[$PACK' . 'AGE1$]', '\\' => '[$PACK' . 'AGE2$]'));
(I already sent this patch to SMF TEAM)
Regards