Post Reply  Post Thread 
Lighttpd and SEO
winmutt
Junior Member
**

Posts: 1
Group: Registered
Joined: Dec 2008
Status: Offline
Reputation: 0
Post: #1
Lighttpd and SEO

These were my rules.

myBB located in /std/

"^/std/index.html$"=>"/std/index.php",
"^/std/(.*)-t-([0-9]+).html(.*)$" => "/std/showthread.php?tid=$2$3",
"^/std/(.*)-t-([0-9]+)-([0-9]+).html$" => "/std/showthread.php?tid=$2&page=$3",
"^/std/(.*)-f-([0-9]+).html(.*)$" => "/std/forumdisplay.php?fid=$2$3",
"^/std/(.*)-u-([0-9]+).html$" => "/std/member.php?action=profile&uid=$2",
"^/std/members/(.*)-([0-9]+).html$" => "/std/member.php?action=profile&uid=$2",
"^/std/(.*)/(.*)-f-([0-9]+).html(.*)$" => "/std/forumdisplay.php?fid=$2$3",
"^/std/(.*)-f-([0-9]+)-([0-9]+).html(.*)$" => "/std/forumdisplay.php?fid=$2&page=$3",
"^/std/(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$" => "/std/forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut=$5&page=$6$7",
"^/std/(.*)-a-([0-9]+).html$" => "/std/announcements.php?aid=$2",

12-30-2008 11:13 PM
Find all posts by this user Quote this message in a reply
avalanch
Junior Member
**

Posts: 22
Group: Registered
Joined: May 2008
Status: Offline
Reputation: 0
Post: #2
RE: Lighttpd and SEO

change your .htaccess file that is located in the same directory as your forums index.php file to:

Code:
[code]# //seo_mod_start
RewriteEngine On
# Uncomment the following and add your forum path if rewrites arent working properly
[color=#0000FF]RewriteBase /std[/color]
RewriteRule ^index.html$ index.php [L,NE]
RewriteRule ^(.*)-t-([0-9]+).html(.*)$ showthread.php?tid=$2$3 [QSA,L]
RewriteRule ^(.*)-t-([0-9]+)-([0-9]+).html$ showthread.php?tid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
RewriteRule ^(.*)-u-([0-9]+).html$ member.php?action=profile&uid=$2 [QSA,L]
RewriteRule ^members/(.*)-([0-9]+).html$ member.php?action=profile&uid=$2 [QSA,L]
RewriteRule ^(.*)/(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut=$5&page=$6$7 [L]
RewriteRule ^(.*)-a-([0-9]+).html$ announcements.php?aid=$2 [L]
# //seo_mod_end


winmutt Wrote:
These were my rules.

myBB located in /std/

"^/std/index.html$"=>"/std/index.php",
"^/std/(.*)-t-([0-9]+).html(.*)$" => "/std/showthread.php?tid=$2$3",
"^/std/(.*)-t-([0-9]+)-([0-9]+).html$" => "/std/showthread.php?tid=$2&page=$3",
"^/std/(.*)-f-([0-9]+).html(.*)$" => "/std/forumdisplay.php?fid=$2$3",
"^/std/(.*)-u-([0-9]+).html$" => "/std/member.php?action=profile&uid=$2",
"^/std/members/(.*)-([0-9]+).html$" => "/std/member.php?action=profile&uid=$2",
"^/std/(.*)/(.*)-f-([0-9]+).html(.*)$" => "/std/forumdisplay.php?fid=$2$3",
"^/std/(.*)-f-([0-9]+)-([0-9]+).html(.*)$" => "/std/forumdisplay.php?fid=$2&page=$3",
"^/std/(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$" => "/std/forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut=$5&page=$6$7",
"^/std/(.*)-a-([0-9]+).html$" => "/std/announcements.php?aid=$2",


http://vgchat.info
http://codeshq.site88.net
12-31-2008 07:02 PM

This post was last modified: 12-31-2008 07:04 PM by avalanch.

Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: