Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Another Search Engine Template Problem

Quote Reply
Another Search Engine Template Problem
My .htaccess file - ALL I would like to get working is to have the posts working properly i.e. C_12/F_13/P_14/ with these templates - I've experimented but have not been able to get this to work.

RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^\.htaccess$ - [F]

# Both Sets work but category and forum links do not work when viewing posts.

# RewriteRule forums/.*P([0-9]+)/?$ /gforum.cgi?post=$3&t=search_engine [L]
# RewriteRule forums/.*P([0-9]+)-([0-9]+)/?$ /gforum.cgi?post=$3&page=$4&t=search_engine [L]
# RewriteRule forums/.*C([0-9]+)/?$ /gforum.cgi?category=$3&t=search_engine [L]
# RewriteRule forums/.*F([0-9]+)/?$ /gforum.cgi?forum=$3&t=search_engine [L]
# RewriteRule forums/.*F([0-9]+)-([0-9]+)/?$ /gforum.cgi?forum=$3&page=$4&t=search_engine [L]
# RewriteRule ?$ /gforum.cgi?t=search_engine [L]
# RewriteRule forums/.*gforum.cgi /gforum.cgi?%{QUERY_STRING} [NS,L]

RewriteRule ^(.*)forums/(.*)_P([0-9]+)/?$ /gforum.cgi?post=$3&t=search_engine [L]
RewriteRule ^(.*)forums/(.*)_P([0-9]+)-([0-9]+)/?$ /gforum.cgi?post=$3&page=$4&t=search_engine [L]
RewriteRule ^(.*)forums/(.*)_F([0-9]+)/?$ /gforum.cgi?forum=$3&t=search_engine [L]
RewriteRule ^(.*)forums/(.*)_F([0-9]+)-([0-9]+)/?$ /gforum.cgi?forum=$3&page=$4&t=search_engine [L]
RewriteRule ^(.*)forums/(.*)_C([0-9]+)/?$ /gforum.cgi?category=$3&t=search_engine [L]
RewriteRule ^(.*)forums/?$ /gforum.cgi?t=search_engine [L]
RewriteRule ^(.*)forums/(.*)gforum.cgi /gforum.cgi?%{QUERY_STRING} [NS,L]
RewriteRule ^/?$ /gforum.cgi?t=search_engine [L]

Got the forums to show up as http://forums.aboriginalconnections.com/ which is what I was after and want to keep.

Got Categories and Forums to work as http://forums.aboriginalconnections.com/...l_School_System_F33/

Notes:
default_template_set - IS - set as search_engine

include_paging.html - using - <%set search_engine_path = ''%>

cat_full_name_linked - using - my $url = '';

cat_path - using:
# for (@cats) {
# ($cat_name_e = $_->{cat_name}) =~ y/ \t\r\n?"'#/__/d;
# $cat_name = sprintf($category, $cat_name_e, $_->{cat_id}) . $cat_name;
# }
return \"/forums/$cat_name";
# return \$cat_name;
}

Help!

Sincerely,

Rob Wesley
Aboriginal Connections (Indigenous Peoples Worldwide)
robwesley@aboriginalconnections.com
Web Directory | Forums