| |
|
| :: |
| Author |
Message |
Alexand83
Joined: 09 May 2008 Posts: 7
|
Posted: Fri May 09, 2008 8:04 pm Post subject: Problem with PHP SEO PROMOD 3.01 |
|
|
Hi, ive a problem with phpBB SEO 3.01
I configured in mode tha in home show link like /forum/nomeforum-fnumebrid/
Then when i click on it show bad, becouse path are not fully like "http:// etc..
but like ./style/themes/subsilver2/stylesheet.css
And link new topic point to /forum/nomeforum-fnumebrid/post.php and it obviusly give me error, page not found
what can be the problem??
this is my htaccess: The htaccess is under folder /forum/ I use Advanced mod
# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /forum/
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION
#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forum\.html$ index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES ADVANCED
RewriteRule ^[a-z0-9_-]*-u([0-9]+)/$ memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES ADVANCED
RewriteRule ^[a-z0-9_-]*-u([0-9]+)/(topics|posts)/?(page([0-9]+)\.html)?$ search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
##################################################### |
Last edited by Alexand83 on Fri May 09, 2008 8:25 pm; edited 1 time in total |
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3128
|
Posted: Fri May 09, 2008 8:20 pm Post subject: Re: Problem with PHP SEO PROMOD 3.01 |
|
|
If it's about the stylesheet not to be loaded, it most likely means that you are using a custom style and that you did not mod it.
If so, you need to apply the code change suggested for either prosilver or subsilver2, just pick the closest to your style or ask for help and provide more details (style name and link). |
_________________
|
|
| Back to top |
|
 |
Alexand83
Joined: 09 May 2008 Posts: 7
|
Posted: Fri May 09, 2008 8:29 pm Post subject: Re: Problem with PHP SEO PROMOD 3.01 |
|
|
this is the site:
http://betpronostico.it/forum/
The css is not modded and also the theme....
I ve also link problem like posting.php.. the link point to ./posting.php and not full path. |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3128
|
Posted: Fri May 09, 2008 8:32 pm Post subject: Re: Problem with PHP SEO PROMOD 3.01 |
|
|
It's normal to see links such as ./posting.php in the source code, they are fixed with a base href tag added in the overall_header.html template.
So your site does use a custom style, you need to mod it as I told you.
Same as always, the mod provides the code change for prosilver and subsilver2, you need to apply them yourself to the other themes.
Yours seems based on subsilver2, so the subsilver2 code changes should match.
And do not forget to clear cache after you do so. |
_________________
|
|
| Back to top |
|
 |
Alexand83
Joined: 09 May 2008 Posts: 7
|
Posted: Fri May 09, 2008 8:41 pm Post subject: Re: Problem with PHP SEO PROMOD 3.01 |
|
|
sorry i not undersand.. i used subsilver theme i think already modded by you... i not changed nothing.
That header u see isnt a modified theme, but its a bridge script with wordpress and phpbb3. |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3128
|
Posted: Fri May 09, 2008 8:50 pm Post subject: Re: Problem with PHP SEO PROMOD 3.01 |
|
|
All right, so you dropped a bit of code when you added the bridge part, add :
after :
| Code: |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
in your overall_header.html, it should be enough, the rest seems here. |
_________________
|
|
| Back to top |
|
 |
Alexand83
Joined: 09 May 2008 Posts: 7
|
Posted: Fri May 09, 2008 8:54 pm Post subject: Re: Problem with PHP SEO PROMOD 3.01 |
|
|
This is what ive in my subsilver overall header.html..
| Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
{SEO_BASE_HREF}
<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}
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
<script type="text/javascript">
// <![CDATA[
<!-- IF S_USER_PM_POPUP -->
if ({S_NEW_PM})
{
popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
}
<!-- ENDIF -->
function popup(url, width, height, name)
{
if (!name)
{
name = '_popup';
}
window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
return false;
}
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
function jumpto()
{
var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
var perpage = '{PER_PAGE}';
var base_url = '{A_BASE_URL}';
var seo_delim_start = '{SEO_START_DELIM}';
var seo_static_pagination = '{SEO_SATIC_PAGE}';
var seo_ext_pagination = '{SEO_EXT_PAGE}';
if (page !== null && !isNaN(page) && page > 0) {
var seo_page = (page - 1) * per_page;
if ( base_url.indexOf('?') >= 0 ) {
document.location.href = base_url.replace(/&/g, '&') + '&start=' + seo_page;
} 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;
}
var seo_type2 = base_url.match(/\/$/);
if (seo_type2 !== null) {
document.location.href = base_url + seo_static_pagination + seo_page + seo_ext_pagination;
}
} else {
document.location.href = base_url;
}
}
}
// www.phpBB-SEO.com SEO TOOLKIT END
/**
* Find a member
*/
function find_username(url)
{
popup(url, 760, 570, '_usersearch');
return false;
}
/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
var parent = document.getElementById(id);
if (!parent)
{
eval('parent = document.' + id);
}
if (!parent)
{
return;
}
var rb = parent.getElementsByTagName('input');
for (var r = 0; r < rb.length; r++)
{
if (rb[r].name.substr(0, name.length) == name)
{
rb[r].checked = state;
}
}
}
<!-- IF ._file -->
/**
* Play quicktime file by determining it's width/height
* from the displayed rectangle area
*
* Only defined if there is a file block present.
*/
function play_qt_file(obj)
{
var rectangle = obj.GetRectangle();
if (rectangle)
{
rectangle = rectangle.split(',')
var x1 = parseInt(rectangle[0]);
var x2 = parseInt(rectangle[2]);
var y1 = parseInt(rectangle[1]);
var y2 = parseInt(rectangle[3]);
var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
}
else
{
var width = 200;
var height = 0;
}
obj.width = width;
obj.height = height + 16;
obj.SetControllerVisible(true);
obj.Play();
}
<!-- ENDIF -->
// ]]>
</script>
</head>
<body class="{S_CONTENT_DIRECTION}">
<div id="menubar">
<table width="100%" cellspacing="0">
<tr>
<td class="genmed">
<!-- IF not S_IS_BOT --><a href="{U_LOGIN_LOGOUT}"><img src="{T_THEME_PATH}/images/icon_mini_login.gif" width="12" height="13" alt="*" /> {L_LOGIN_LOGOUT}</a> <!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS --> <a href="{U_RESTORE_PERMISSIONS}"><img src="{T_THEME_PATH}/images/icon_mini_login.gif" width="12" height="13" alt="*" /> {L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --> <span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF -->
<!-- IF not S_IS_BOT -->
<!-- IF S_USER_LOGGED_IN -->
<!-- IF S_DISPLAY_PM --> <a href="{U_PRIVATEMSGS}"><img src="{T_THEME_PATH}/images/icon_mini_message.gif" width="12" height="13" alt="*" /> {PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
<!-- ELSEIF S_REGISTER_ENABLED --> <a href="{U_REGISTER}"><img src="{T_THEME_PATH}/images/icon_mini_register.gif" width="12" height="13" alt="*" /> {L_REGISTER}</a>
<!-- ENDIF -->
<!-- ENDIF -->
</td>
<td class="genmed" align="{S_CONTENT_FLOW_END}">
<a href="{U_FAQ}"><img src="{T_THEME_PATH}/images/icon_mini_faq.gif" width="12" height="13" alt="*" /> {L_FAQ}</a>
<!-- IF S_DISPLAY_SEARCH --> <a href="{U_SEARCH}"><img src="{T_THEME_PATH}/images/icon_mini_search.gif" width="12" height="13" alt="*" /> {L_SEARCH}</a><!-- ENDIF -->
<!-- IF not S_IS_BOT -->
<!-- IF S_DISPLAY_MEMBERLIST --> <a href="{U_MEMBERLIST}"><img src="{T_THEME_PATH}/images/icon_mini_members.gif" width="12" height="13" alt="*" /> {L_MEMBERLIST}</a><!-- ENDIF -->
<!-- IF S_USER_LOGGED_IN --> <a href="{U_PROFILE}"><img src="{T_THEME_PATH}/images/icon_mini_profile.gif" width="12" height="13" alt="*" /> {L_PROFILE}</a><!-- ENDIF -->
<!-- ENDIF -->
</td>
</tr>
</table>
</div>
<div id="datebar">
<table width="100%" cellspacing="0">
<tr>
<td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
<td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
</tr>
</table>
</div>
</div>
<div id="wrapcentre">
<!-- IF S_DISPLAY_SEARCH -->
<p class="searchbar">
<span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
<!-- IF S_USER_LOGGED_IN -->
<span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
<!-- ENDIF -->
</p>
<!-- ENDIF -->
<br style="clear: both;" />
<!-- INCLUDE breadcrumbs.html -->
<br /> |
|
|
|
| Back to top |
|
 |
Alexand83
Joined: 09 May 2008 Posts: 7
|
Posted: Fri May 09, 2008 8:59 pm Post subject: Re: Problem with PHP SEO PROMOD 3.01 |
|
|
| OK, its a problem with the bridge... i deleted integration(graphic) and now him work.... u maybe know why?? What have CSS or other theme that can conflict with your mod?? |
|
|
| Back to top |
|
 |
Alexand83
Joined: 09 May 2008 Posts: 7
|
Posted: Fri May 09, 2008 9:35 pm Post subject: Re: Problem with PHP SEO PROMOD 3.01 |
|
|
| OK, u cant help me, i know that its another script the problem and not your... but maybe u can know why... |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3128
|
Posted: Sun May 11, 2008 8:26 pm Post subject: Re: Problem with PHP SEO PROMOD 3.01 |
|
|
You just need to find where the mod is adding a new html header and manually add the base href there, should not be very difficult if you have the code change list.
You need to add :
| Code: | | <base href="http://www.example.com/phpbb/"/> |
in the head section of your mod's header.
where -http://www.example.com/phpbb/ would be the url to where phpBB is installed.
In you online source code you have this :
| Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<base href='http://betpronostico.it/forum/'><title>Bet Pronostici Scommesse</title>
<meta name="generator" content="WordPress 2.3.3" /> <!-- leave this for stats -->
<link rel="stylesheet" href="http://betpronostico.it/wp-content/themes/iPhone-Blog/style.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="Bet Pronostici Scommesse RSS Feed" href="http://betpronostico.it/feed/" />
<link rel="pingback" href="http://betpronostico.it/xmlrpc.php" />
<meta name='robots' content='noindex,nofollow' />
<meta name='NextGEN' content='0.95' />
<style type="text/css" media="screen">@import "http://betpronostico.it/wp-content/plugins/nextgen-gallery/css/nggallery.css";</style>
<script type="text/javascript"> var tb_pathToImage = "http://betpronostico.it/wp-content/plugins/nextgen-gallery/thickbox/loadingAnimationv3.gif";</script>
<style type="text/css" media="screen">@import "http://betpronostico.it/wp-content/plugins/nextgen-gallery/thickbox/thickbox.css";</style>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://betpronostico.it/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://betpronostico.it/wp-includes/wlwmanifest.xml" /> <script type='text/javascript' src='http://betpronostico.it/wp-content/plugins/vipers-video-quicktags/vipers-video-quicktags.js?ver=5.4.4'></script>
<script type='text/javascript' src='http://betpronostico.it/wp-content/plugins/nextgen-gallery/admin/js/jquery.js?ver=1.2.2'></script>
<script type='text/javascript' src='http://betpronostico.it/wp-content/plugins/nextgen-gallery/thickbox/thickbox-pack.js?ver=3.1.1'></script>
<script type='text/javascript' src='http://betpronostico.it/wp-content/plugins/nextgen-gallery/admin/js/swfobject.js?ver=1.5'></script> |
Before the beginning of the regular phpBB header, and the base href tag is apparently deleted at this stage. |
_________________
|
|
| Back to top |
|
 |
Alexand83
Joined: 09 May 2008 Posts: 7
|
Posted: Mon May 12, 2008 1:07 am Post subject: Re: Problem with PHP SEO PROMOD 3.01 |
|
|
yeah i already undestand that and fixed.. i was not have time to write this...
Thx for all. |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|