phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.
Moderator: Moderators
by inetforce » Sat Jan 02, 2010 4:10 pm
The rest of the website seems to be working fine. I am using 3.0.6 premod-advance.
Here is the link to New Topic:
www.domainname.com/new-members-introduc ... e=post&f=2404 error
Here is the link to PostReply:
domainname.com/new-members-introduction-f2/posting.php?mode=reply&f=2&t=1
What could be the problem?
-
inetforce
-
- Posts: 13
- Joined: Sat Jan 02, 2010 3:58 pm
by inetforce » Sat Jan 02, 2010 4:13 pm
I forgot to mention that I am not using the default style, could this be the problem? If so, how can I get around it without going for the default style?
-
inetforce
-
- Posts: 13
- Joined: Sat Jan 02, 2010 3:58 pm
by inetforce » Sun Jan 03, 2010 12:51 am
Problem is related to Virtual Folders. When I turn off Virtual Folder and I regenerate the .htaccess file the address changes to :
domainname.com/posting.php?mode=reply&f=2&t=1
Even if I dont turn off Virtual Folder I can still post if I use the correct address.
Why is posting not redirecting like it should?
Last edited by
inetforce on Tue Jan 05, 2010 3:29 pm, edited 1 time in total.
-
inetforce
-
- Posts: 13
- Joined: Sat Jan 02, 2010 3:58 pm
by francy587 » Mon Jan 04, 2010 11:04 pm
i have got the same error!!
could someone help us please????
-
francy587
-
- Posts: 16
- Joined: Tue Feb 19, 2008 6:07 pm
by austin881 » Tue Jan 05, 2010 9:40 pm
Tried clearing the cache in the phpBB-SEO section of your ACP?
-

austin881
- phpBB SEO Team

-
- Posts: 249
- Joined: Wed Oct 28, 2009 12:16 am
- Location: Boise, Idaho USA
-
by FM3 » Mon Jan 11, 2010 9:36 am
Hi,
I had same problem and believe that I found solution. You may not use default style (prosilver/subsilver2) like me and so, you need to add some lines code in templates, as described below.
Enjoy !
- Code: Select all
#
#-----[ DIY INSTRUCTIONS ]--------------------------------------------------
#
Once you will have updated, you will have to refresh your theme's cache as well as phpBB's cache (ACP => STYLE, Themes => Refresh).
Code change for prosilver and subsilver templates with the phpBB SEO premod 3.0.6 :
[url=http://www.phpbb-seo.com/en/phpbb-seo-premod/seo-url-premod-t1549.html]phpBB SEO Premod V 3.0.6[/url] (en)
http://www.phpbb-seo.com/fr/premod-phpbb-seo/premod-referencement-phpbb-t1951.html (fr)
#
#-----[ OPEN ]------------------------------------------
## MOD Title: Advanced phpBB3 SEO mod Rewrite
#
styles/prosilver/template/attachment.html
#
#-----[ FIND ]------------------------------------------
#
<dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}" /></a></dt>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / {_file.DOWNLOAD_NAME}<!-- ELSE -->{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}<!-- ENDIF -->" /></a></dt>
#
#-----[ FIND ]------------------------------------------
#
<dt class="attach-image"><img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" onclick="viewableArea(this);" /></dt>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<dt class="attach-image"><img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / <!-- ENDIF -->{_file.DOWNLOAD_NAME}" onclick="viewableArea(this);" /></dt>
#
#-----[ FIND ]------------------------------------------
#
<dt><!-- IF _file.UPLOAD_ICON -->{_file.UPLOAD_ICON} <!-- ENDIF --><a class="postlink" href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a></dt>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<dt><!-- IF _file.UPLOAD_ICON -->{_file.UPLOAD_ICON} <!-- ENDIF --><a class="postlink" href="{_file.U_DOWNLOAD_LINK}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / <!-- ENDIF -->{_file.DOWNLOAD_NAME}">{_file.DOWNLOAD_NAME}</a></dt>
#
#-----[ OPEN ]------------------------------------------
## MOD Title: Advanced phpBB3 SEO mod Rewrite
#
styles/prosilver/template/forum_fn.js
#
#-----[ FIND ]------------------------------------------
#
function jumpto()
{
var page = prompt(jump_page, on_page);
if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
{
if (base_url.indexOf('?') == -1)
{
document.location.href = base_url + '?start=' + ((page - 1) * per_page);
}
else
{
document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
}
}
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
function jumpto() {
var page = prompt(jump_page, on_page);
if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0) {
var seo_page = (page - 1) * per_page;
var anchor = '';
var anchor_parts = base_url.split('#');
if ( anchor_parts[1] ) {
base_url = anchor_parts[0];
anchor = '#' + anchor_parts[1];
}
if ( base_url.indexOf('?') >= 0 ) {
document.location.href = base_url.replace(/&/g, '&') + '&start=' + seo_page + anchor;
} else if ( seo_page > 0 ) {
var seo_type1 = base_url.match(/\.[a-z0-9]+$/i);
if (seo_type1 !== null) {
document.location.href = base_url.replace(/\.[a-z0-9]+$/i, '') + seo_delim_start + seo_page + seo_type1 + anchor;
}
var seo_type2 = base_url.match(/\/$/);
if (seo_type2 !== null) {
document.location.href = base_url + seo_static_pagination + seo_page + seo_ext_pagination + anchor;
}
} else {
document.location.href = base_url + anchor;
}
}
}
// Open external links in new window in a XHTML 1.x compliant way.
/**
* phpbb_seo_href()
* Fixes href="#something" links with virtual directories
* Optionally open external or marked with a css class links in a new window
* in a XHTML 1.x compliant way.
*/
function phpbb_seo_href() {
var current_domain = document.domain.toLowerCase();
if (!current_domain || !document.getElementsByTagName) return;
if (seo_external_sub && current_domain.indexOf('.') >= 0) {
current_domain = current_domain.replace(new RegExp(/^[a-z0-9_-]+\.([a-z0-9_-]+\.([a-z]{2,6}|[a-z]{2,3}\.[a-z]{2,3}))$/i), '$1');
}
if (seo_ext_classes) {
var extclass = new RegExp("(^|\s)(" + seo_ext_classes + ")(\s|$)");
}
if (seo_hashfix) {
var basehref = document.getElementsByTagName('base')[0];
if (basehref) {
basehref = basehref.href;
var hashtest = new RegExp("^(" + basehref + "|)#[a-z0-9_-]+$");
var current_href = document.location.href.replace(/#[a-z0-9_-]+$/i, "");
} else {
seo_hashfix = false;
}
}
var hrefels = document.getElementsByTagName("a");
var hrefelslen = hrefels.length;
for (var i = 0; i < hrefelslen; i++) {
var el = hrefels[i];
var hrefinner = el.innerHTML.toLowerCase();
if (el.onclick || (el.href == '') || (el.href.indexOf('javascript') >=0 ) || (hrefinner.indexOf('<a') >= 0) ) {
continue;
}
if (seo_hashfix && el.hash && hashtest.test(el.href)) {
el.href = current_href + el.hash;
}
if (seo_external) {
if ((el.href.indexOf(current_domain) >= 0) && !(seo_ext_classes && extclass.test(el.className))) {
continue;
}
el.onclick = function () { window.open(this.href); return false; };
}
}
}
if (seo_external || seo_hashfix) {
onload_functions.push('phpbb_seo_href()');
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
## MOD Title: phpBB3 SEO No Duplicate
#
styles/prosilver/template/forumlist_body.html
#
#-----[ FIND ]------------------------------------------
#
<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- IF forumrow.LAST_POST_LINK --><i>{forumrow.LAST_POST_LINK}</i><br/><!-- ENDIF -->
#
#-----[ OPEN ]------------------------------------------
## MOD Title: Advanced phpBB3 SEO mod Rewrite
## MOD Title: phpBB3 SEO Dynamic Meta tags
## MOD Title: phpBB3 SEO Optimal titles
## MOD Title: GYM Sitempas & RSS
#
styles/prosilver/template/overall_header.html
#
#-----[ FIND ]------------------------------------------
#
<head>
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2002-2006 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
{META}
<title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<head>
{SEO_BASE_HREF}
<!-- IF SEO_CANONICAL_URL --><link rel="canonical" href="{SEO_CANONICAL_URL}" /><!-- ENDIF -->
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<title>{PAGE_TITLE}<!-- IF S_IN_MCP --> • {L_MCP}<!-- ELSEIF S_IN_UCP --> • {L_UCP}<!-- ENDIF --></title>
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
{META_TAG}
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
{META}
<!-- BEGIN gym_rsslinks -->
<link rel="alternate" type="application/rss+xml" title="{gym_rsslinks.TITLE}" href="{gym_rsslinks.URL}" />
<!-- END gym_rsslinks -->
#
#-----[ FIND ]------------------------------------------
## MOD Title: Advanced phpBB3 SEO mod Rewrite
#
var onload_functions = new Array();
var onunload_functions = new Array();
#
#-----[ AFTER, ADD]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
var seo_delim_start = '{SEO_START_DELIM}';
var seo_static_pagination = '{SEO_SATIC_PAGE}';
var seo_ext_pagination = '{SEO_EXT_PAGE}';
var seo_external = {SEO_EXTERNAL};
var seo_external_sub = {SEO_EXTERNAL_SUB};
var seo_ext_classes = {SEO_EXT_CLASSES};
var seo_hashfix = {SEO_HASHFIX};
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
## MOD Title: GYM Sitempas & RSS
#
styles/prosilver/template/overall_footer.html
#
#-----[ FIND ]------------------------------------------
#
<ul class="linklist">
#
#-----[ REPLACE WITH ]------------------------------------------
#
<ul class="linklist<!-- IF GYM_LINKS --> navlinks<!-- ENDIF -->">
#
#-----[ FIND ]------------------------------------------
#
</ul>
#
#-----[ AFTER, ADD ]------------------------------------------
#
#
<!-- IF GYM_LINKS -->
<ul class="linklist">
<!-- IF GYM_HTML_NEWS_LINK --><li class="leftside">{GYM_HTML_NEWS_LINK}</li><!-- ENDIF -->
<!-- IF GYM_HTML_MAP_LINK --><li class="leftside">{GYM_HTML_MAP_LINK}</li><!-- ENDIF -->
<!-- IF GYM_GOOGLE_LINK --><li class="leftside">{GYM_GOOGLE_LINK}</li><!-- ENDIF -->
<!-- IF GYM_RSS_LINK --><li class="leftside">{GYM_RSS_LINK}</li><!-- ENDIF -->
<!-- IF GYM_RSS_CHAN_LINK --><li class="leftside">{GYM_RSS_CHAN_LINK}</li><!-- ENDIF -->
</ul>
<!-- ENDIF -->
#
#-----[ OPEN ]------------------------------------------
## MOD Title: Advanced phpBB3 SEO mod Rewrite
#
styles/prosilver/template/posting_editor.html
#
#-----[ FIND ]------------------------------------------
#
<dl style="clear: left;">
<dt><label for="subject">{L_SUBJECT}:</label></dt>
<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
</dl>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- IF S_URL -->
<dl style="clear: left;">
<dt><label for="url">URL:</label></dt>
<dd><input type="text" name="url" id="url" size="45" maxlength="250" tabindex="2" value="{TOPIC_URL}" class="inputbox autowidth" /></dd>
</dl>
<!-- ENDIF -->
#
#-----[ OPEN ]------------------------------------------
## MOD Title: Advanced phpBB3 SEO mod Rewrite
#
styles/prosilver/template/simple_header.html
#
#-----[ FIND ]------------------------------------------
#
<head>
#
#-----[ AFTER, ADD]------------------------------------------
#
{SEO_BASE_HREF}
#
#-----[ FIND ]------------------------------------------
#
var onload_functions = new Array();
var onunload_functions = new Array();
var style_cookie_settings = '{A_COOKIE_SETTINGS}';
#
#-----[ AFTER, ADD]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
var seo_delim_start = '{SEO_START_DELIM}';
var seo_static_pagination = '{SEO_SATIC_PAGE}';
var seo_ext_pagination = '{SEO_EXT_PAGE}';
var seo_external = {SEO_EXTERNAL};
var seo_external_sub = {SEO_EXTERNAL_SUB};
var seo_ext_classes = {SEO_EXT_CLASSES};
var seo_hashfix = {SEO_HASHFIX};
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
## MOD Title: GYM Sitempas & RSS
#
styles/prosilver/template/viewforum_body.html
#
#-----[ FIND ]------------------------------------------
#
<h2><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- IF GYM_LINKS_CAT --><h3>{GYM_HTML_FORUM_NEWS_LINK} {GYM_HTML_FORUM_MAP_LINK} {GYM_RSS_FORUM_LINK} {GYM_GOOGLE_FORUM_LINK}</h3><!-- ENDIF -->
#
#-----[ OPEN ]------------------------------------------
## MOD Title: phpBB SEO Related Topics
#
styles/prosilver/template/viewtopic_body.html
#
#-----[ FIND ]------------------------------------------
#
<!-- IF S_TOPIC_MOD -->
<form method="post" action="{S_MOD_ACTION}">
<fieldset class="quickmod">
<label for="quick-mod-select">{L_QUICK_MOD}:</label> {S_TOPIC_MOD} <input type="submit" value="{L_GO}" class="button2" />
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- ENDIF -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- IF S_RELATED_RESULTS --><div class="clear"> </div><br /><br />
<div class="forumbg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>{L_RELATED_TOPICS}</dt>
<dd class="posts">{L_REPLIES}</dd>
<dd class="views">{L_VIEWS}</dd>
<dd class="lastpost"><span>{L_LAST_POST}</span></dd>
</dl>
</li>
</ul>
<ul class="topiclist forums">
<!-- BEGIN related -->
<li class="row bg1<!-- IF related.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF related.S_POST_STICKY --> sticky<!-- ENDIF --><!-- IF related.S_TOPIC_REPORTED --> reported<!-- ENDIF -->">
<dl class="icon" style="background-image: url({related.TOPIC_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
<dt <!-- IF related.TOPIC_ICON_IMG and S_TOPIC_ICONS --> style="background-image: url({T_ICONS_PATH}{related.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF -->><!-- IF related.S_UNREAD_TOPIC --><a href="{related.U_NEWEST_POST}">{NEWEST_POST_IMG}</a> <!-- ENDIF --><a class="topictitle" href="{related.U_TOPIC}" title="{related.TOPIC_TITLE} : {related.FORUM}">{related.TOPIC_TITLE}</a>
<!-- IF related.S_TOPIC_UNAPPROVED --><a href="{related.U_MCP_QUEUE}">{UNAPPROVED_IMG}</a> <!-- ENDIF -->
<!-- IF related.S_TOPIC_REPORTED --><a href="{related.U_MCP_REPORT}">{REPORTED_IMG}</a><!-- ENDIF --><br />
<!-- IF related.PAGINATION --><strong class="pagination"><span>{related.PAGINATION}</span></strong><!-- ENDIF -->
<!-- IF related.ATTACH_ICON_IMG -->{related.ATTACH_ICON_IMG} <!-- ENDIF -->{L_POST_BY_AUTHOR} {related.TOPIC_AUTHOR_FULL} » {related.FIRST_POST_TIME}
</dt>
<dd class="posts">{related.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
<dd class="views">{related.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
<dd class="lastpost"><span><dfn>{L_LAST_POST} </dfn>{L_POST_BY_AUTHOR} {related.LAST_POST_AUTHOR_FULL}
<a href="{related.U_LAST_POST}">{LAST_POST_IMG}</a><br />{related.LAST_POST_TIME}
<!-- IF related.U_FORUM and not related.S_POST_GLOBAL --><br /><a class="topictitle" href="{related.U_FORUM}" title="{related.FORUM}">{related.FORUM}</a><!-- ENDIF --></span></dd>
</dl>
</li>
<!-- END related -->
</ul>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
#
#-----[ OPEN ]------------------------------------------
## MOD Title: GYM Sitempas & RSS
#
styles/prosilver/theme/common.css
#
#-----[ FIND ]------------------------------------------
#
.clear {
display: block;
clear: both;
font-size: 1px;
line-height: 1px;
background: transparent;
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
/* GYM Sitemaps & RSS - www.phpbb-seo.com */
div.gymsublist {
display:block;
position:relative;
padding-left:10px;
padding-top:5px;
padding-bottom:10px;
padding-right:0;
margin:0;
}
div.gymsublist ul {
display:block;
position:relative;
height:1%;
padding-left:30px;
}
div.gymsublist ul li {
display:block;
position:relative;
line-height:18px;
font-size:11px;
}
/* GYM Sitemaps & RSS - www.phpbb-seo.com */
-
FM3
-
- Posts: 5
- Joined: Sun Jan 06, 2008 7:05 pm
by JarekL » Thu Feb 04, 2010 9:02 am
austin881 wrote:Tried clearing the cache in the phpBB-SEO section of your ACP?
no solving

I have too problem help...
-
JarekL
-
- Posts: 7
- Joined: Mon Oct 26, 2009 7:13 pm
by Meis2M » Thu Feb 04, 2010 10:13 am
u must edite ur style for seo...
overal header
posting body
simple header
posting body
-
Meis2M
- PR1

-
- Posts: 129
- Joined: Sat Aug 08, 2009 2:53 pm
- Location: www.zohall.com
-
by JarekL » Thu Feb 04, 2010 10:52 am
i don´t stupid.
Developers seo url have a mistake in code.

In my testing forum its ok. I copy files in my no testing server and i see view failed 404. only post and url to administrator panel.
-
JarekL
-
- Posts: 7
- Joined: Mon Oct 26, 2009 7:13 pm
by akajain » Thu Feb 04, 2010 11:54 am
This is a call to moderator of this forum.....
Please can someone help us ? Anyone

-
akajain
-
- Posts: 7
- Joined: Sun Jan 31, 2010 3:49 pm
by akajain » Thu Feb 04, 2010 3:39 pm
Thank you, I get this fixed.
-
akajain
-
- Posts: 7
- Joined: Sun Jan 31, 2010 3:49 pm
by JarekL » Thu Feb 11, 2010 8:29 pm
no solving

-
JarekL
-
- Posts: 7
- Joined: Mon Oct 26, 2009 7:13 pm
Return to Advanced SEO URL
-
- 404 Error after Editing or Replying to topics
by trigun » Tue Feb 24, 2009 3:02 pm
- 7 Replies
- 392 Views
- Last post by dcz

Fri Feb 27, 2009 11:10 am
-
- 404 error when I click on forums/topics
by qu4rk » Fri Mar 25, 2011 7:44 pm
- 1 Replies
- 774 Views
- Last post by qu4rk

Sat Mar 26, 2011 3:32 am
-
- After reply, redirect to wrong url
by aliefmaksum » Wed Nov 18, 2009 10:16 am
- 5 Replies
- 716 Views
- Last post by dcz

Sun Feb 14, 2010 12:51 pm
-
- Wrong URL in Reply Title
by yaashul » Fri Nov 27, 2009 5:47 pm
- 2 Replies
- 421 Views
- Last post by huber2t

Sat Dec 05, 2009 8:30 am
-
- New page on reply submit
by devaspora » Wed Jun 09, 2010 9:18 pm
- 1 Replies
- 519 Views
- Last post by devaspora

Mon Jun 14, 2010 12:26 am
Users browsing this forum: No registered users and 6 guests