phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Installed the SEO Mod completely on Beta site
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

Installed the SEO Mod completely on Beta sitePosted: Wed Apr 11, 2007 9:51 am    Post subject: Re: Installed the SEO Mod completely on Beta site

Doing it all yourself can be better if you know what you want exactly.

The best would be to share sessions with phpBB, but I think we're done with this topic, new matters, new topics Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
cybersaber



Joined: 13 Nov 2006
Posts: 40

Installed the SEO Mod completely on Beta sitePosted: Wed Apr 11, 2007 5:37 pm    Post subject: Re: Installed the SEO Mod completely on Beta site

I am need to setup something like the main story block of :

www. bigblueball .com

Their forums are: www. bigblueball .com / forums

The topics posted on the forums can be shifted to the main block on www. bigblueball .com I know the site uses Vb but is there anything I can do similar like that. Also the threads are from different forums.

The main block is like a Blog in which I can topic which is converted into a Blog post and the replies to the topic are shown as number of Comments. The username is listed as Posted by Author name and his/her name is linked with their profile on the forums.

If you Scroll down a little on www. bigblueball .com you'll see an article named: Yahoo! Mail to offer unlimited Space

I have taken it as an example below.



Actually I dont need all the features of Mx portal. I only need to have the ability to post the topic posted on forum on the index page with my permission. The Topic should be converted into the Blog like post with authors named link with his forum profile and number of replies to the topic displaying as number of comments.


The Green text above is all I need. Is there anyone who can help me out. I dont need you to create a mod for Mx portal If anyone can just create it as standalone. Please help me out.


Please do ask me if you have any question. Its just not a mx portal hack... you can help me creating it as standalone too. I can agree with your all conditions if any.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

Installed the SEO Mod completely on Beta sitePosted: Thu Apr 12, 2007 7:57 am    Post subject: Re: Installed the SEO Mod completely on Beta site

dcz wrote:
... but I think we're done with this topic, new matters, new topics Wink


Please Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
salman



Joined: 21 May 2007
Posts: 1

Installed the SEO Mod completely on Beta sitePosted: Mon May 21, 2007 11:17 am    Post subject: Re: Installed the SEO Mod completely on Beta site

Hi, This post is very informative, however I would like some specific information. If someone can help me then please send me a private message. Best Regards,
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

Installed the SEO Mod completely on Beta sitePosted: Wed May 23, 2007 11:37 am    Post subject: Re: Installed the SEO Mod completely on Beta site

And welcome Very Happy

Are these info this sensible they cannot be discussed publicly ?

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
cybersaber



Joined: 13 Nov 2006
Posts: 40

Installed the SEO Mod completely on Beta sitePosted: Wed Aug 08, 2007 8:01 pm    Post subject: Re: Installed the SEO Mod completely on Beta site

dcz wrote:
This you can change in phpbb_seo_class.php :
Code:
      $this->seo_ext = array('cat' => '.html',
         'forum' => '.html',
         'topic' => '.html',
         'user' => '.html',
         'gz_ext' => '',
      );


If you set to :
Code:

      $this->seo_ext = array('cat' => '.html',
         'forum' => '/',
         'topic' => '.html',
         'user' => '.html',
         'gz_ext' => '',
      );


Above is Not working for me. I'll PM you the url of the beta site.

and update the .htaccess accordingly for forums :

Code:
# PAGINATED FORUM
RewriteRule ^phpbb/.*-f([0-9]+)-([0-9]+)\.html$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^phpbb/.*-f([0-9]+)\.html$ /phpbb/viewforum.php?f=$1 [QSA,L]


to :

Code:
# PAGINATED FORUM
RewriteRule ^phpbb/.*-f([0-9]+)-([0-9]+)/$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^phpbb/.*-f([0-9]+)/$ /phpbb/viewforum.php?f=$1 [QSA,L]


Should work on all forum urls at once.

And the zero duplicate will follow the change by itself.

Then, after the phpBB SEO rewriterules, add :

Code:
#we keep them to kill them ;-)
RewriteRule ^forums.* /new_folder/index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) /new_folder/viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* /viewtopic.php?p=$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* /new_folder/viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) /new_folder/viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest /new_folder/viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* /new_folder/viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* /new_folder/viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* /new_folder/viewtopic.php?t=$1 [L,NC]
RewriteRule ^about([0-9]*).html /new_folder/viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* /new_folder/viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* /new_folder/viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* /new_folder/viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html /new_folder/viewforum.php?f=$1 [L,NC]
RewriteRule ^forum-([0-9]*).* /new_folder/viewforum.php?f=$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* /new_folder/viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* /new_folder/viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* /new_folder/viewtopic.php?t=$1&view=next [L,NC]


[b]This is not working either.


Then, create a viewforum.php file and put this in it :

Code:
<?php
/**
*
* @package phpBB SEO redirection suite
* @version $Id: phpbb_seo_class.php,v 1.0 2006/12/09 13:48:48 dcz Exp $
* @copyright (c) 2006 dcz - www.phpbb-seo.com
* @http://opensource.org/licenses/gpl-license.php GNU General Public License v2
*
*/
define('IN_PHPBB', true);
$phpbb_root_path = './new_folder/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start initial var setup
//
if ( isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL]) )
{
   $forum_id = ( isset($HTTP_GET_VARS[POST_FORUM_URL]) ) ? intval($HTTP_GET_VARS[POST_FORUM_URL]) : intval($HTTP_POST_VARS[POST_FORUM_URL]);
}
else if ( isset($HTTP_GET_VARS['forum']))
{
   $forum_id = intval($HTTP_GET_VARS['forum']);
}
else
{
   $forum_id = '';
}

$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
$start = ($start < 0) ? 0 : $start;

$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? '' : $script_name . '/';
$root_url = $server_protocol . $server_name . $server_port . '/';
$phpbb_url = $root_url . $script_name;
if (!empty($forum_id)) {
   if ( !empty($db) ) {
      $db->sql_close();
   }
   $url = "viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id";
   header("HTTP/1.1 301 Moved Permanently", TRUE, 301);
   header("Location: " . $phpbb_url . $url);
   exit();
} else {
   if ( !empty($db) ) {
      $db->sql_close();
   }
   $url = "index.$phpEx";
   header("HTTP/1.1 301 Moved Permanently", TRUE, 301);
   header("Location: " . $phpbb_url);
   exit();
}

?>


and create a viewtopic.php file and put this in it :

Code:
<?php
/**
*
* @package phpBB SEO redirection suite
* @version $Id: phpbb_seo_class.php,v 1.0 2006/12/09 13:48:48 dcz Exp $
* @copyright (c) 2006 dcz - www.phpbb-seo.com
* @http://opensource.org/licenses/gpl-license.php GNU General Public License v2
*
*/

define('IN_PHPBB', true);
// You need here to set the correct path to your forum !!!
$phpbb_root_path = './new_folder/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start initial var setup
//
$topic_id = $post_id = 0;
$url = '';
if ( isset($HTTP_GET_VARS[POST_TOPIC_URL]) )
{
   $topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]);
}
else if ( isset($HTTP_GET_VARS['topic']) )
{
   $topic_id = intval($HTTP_GET_VARS['topic']);
}

if ( isset($HTTP_GET_VARS[POST_POST_URL]))
{
   $post_id = intval($HTTP_GET_VARS[POST_POST_URL]);
}


$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
$start = ($start < 0) ? 0 : $start;
if (!$topic_id && !$post_id)
{
   message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? '' : $script_name . '/';
$root_url = $server_protocol . $server_name . $server_port . '/';
$phpbb_url = $root_url . $script_name;
if ($topic_id) {
   if ( !empty($db) ) {
      $db->sql_close();
   }
   $url = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id";
   header("HTTP/1.1 301 Moved Permanently", TRUE, 301);
   header("Location: " . $phpbb_url . $url);
   exit();
} elseif ($post_id) {
   if ( !empty($db) ) {
      $db->sql_close();
   }
   $url = "viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id";
   header("HTTP/1.1 301 Moved Permanently", TRUE, 301);
   header("Location: " . $phpbb_url . $url);
   exit();
} else {
   if ( !empty($db) ) {
      $db->sql_close();
   }
   $url = "index.$phpEx";
   header("HTTP/1.1 301 Moved Permanently", TRUE, 301);
   header("Location: " . $phpbb_url);
   exit();
}

?>


[/b]Havent tested this yet.
Note that you'll have to replace new_folder by the rel folder name where phpBB is installed in both the created viewforum.php and viewtopic.php and the .htaccess.

The viewtopic.php and viewtopic.php are meant to be uploaded at the root level, in order to redirect old vanilla url : viewtopic.php?t=xx to new_folder/viewtopic.php?t=xx, allowing the zero duplicate to do its job for these too.

You'll have to check headers for these the same way you did for the zero duplicate, since here it's php redirection, we need to make sure.

++
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Installed the SEO Mod completely on Beta sitePosted: Thu Aug 09, 2007 7:08 am    Post subject: Re: Installed the SEO Mod completely on Beta site

And ?

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
cybersaber



Joined: 13 Nov 2006
Posts: 40

Installed the SEO Mod completely on Beta sitePosted: Thu Aug 09, 2007 8:53 am    Post subject: Re: Installed the SEO Mod completely on Beta site

And read the Colored text in the quoted Text.
Back to top
cybersaber



Joined: 13 Nov 2006
Posts: 40

Installed the SEO Mod completely on Beta sitePosted: Sat Aug 11, 2007 5:38 am    Post subject: Re: Installed the SEO Mod completely on Beta site

Well I understand about deleting my posts ... but I need a reply. My new forum update is based on your Mod. Please kindly provide me an answer.
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Installed the SEO Mod completely on Beta sitePosted: Sat Aug 11, 2007 7:31 am    Post subject: Re: Installed the SEO Mod completely on Beta site

I'm sorry, but 1) you can edit your last post, and 2) I'm still thinking you should make the effort to write and understandable message.
dcz did reply in detail, I guess this deserve some effort too.

I honestly even don't know what are your plan reading your big quoted message.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
cybersaber



Joined: 13 Nov 2006
Posts: 40

Installed the SEO Mod completely on Beta sitePosted: Sat Aug 11, 2007 8:14 am    Post subject: Re: Installed the SEO Mod completely on Beta site

I appreiciate DCZ's effort. DCZ provide me with this code for changing

forum urls like this: apache-mod-rewrite-vf36.html

to

forums url like this: apache-mod-rewrite-vf36/

You can read more about this on this page:

http://www.phpbb-seo.com/boards/advanced-mod-rewrite/discussions-vt945-15.html


I have done all the necessary change. But the problem is still there. SE0 I'll PM you the Beta site url. Please see if you can do anything... Also where is DCZ.

This you can change in phpbb_seo_class.php :
Code:
      $this->seo_ext = array('cat' => '.html',
         'forum' => '.html',
         'topic' => '.html',
         'user' => '.html',
         'gz_ext' => '',
      );


If you set to :
Code:

      $this->seo_ext = array('cat' => '.html',
         'forum' => '/',
         'topic' => '.html',
         'user' => '.html',
         'gz_ext' => '',
      );




and update the .htaccess accordingly for forums :

Code:
# PAGINATED FORUM
RewriteRule ^phpbb/.*-f([0-9]+)-([0-9]+)\.html$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^phpbb/.*-f([0-9]+)\.html$ /phpbb/viewforum.php?f=$1 [QSA,L]


to :

Code:
# PAGINATED FORUM
RewriteRule ^phpbb/.*-f([0-9]+)-([0-9]+)/$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^phpbb/.*-f([0-9]+)/$ /phpbb/viewforum.php?f=$1 [QSA,L]


Should work on all forum urls at once.

And the zero duplicate will follow the change by itself.

Then, after the phpBB SEO rewriterules, add :

Code:
#we keep them to kill them ;-)
RewriteRule ^forums.* /new_folder/index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) /new_folder/viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* /viewtopic.php?p=$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* /new_folder/viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) /new_folder/viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest /new_folder/viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* /new_folder/viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* /new_folder/viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* /new_folder/viewtopic.php?t=$1 [L,NC]
RewriteRule ^about([0-9]*).html /new_folder/viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* /new_folder/viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* /new_folder/viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* /new_folder/viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html /new_folder/viewforum.php?f=$1 [L,NC]
RewriteRule ^forum-([0-9]*).* /new_folder/viewforum.php?f=$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* /new_folder/viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* /new_folder/viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* /new_folder/viewtopic.php?t=$1&view=next [L,NC]




Then, create a viewforum.php file and put this in it :

Code:
<?php
/**
*
* @package phpBB SEO redirection suite
* @version $Id: phpbb_seo_class.php,v 1.0 2006/12/09 13:48:48 dcz Exp $
* @copyright (c) 2006 dcz - www.phpbb-seo.com
* @http://opensource.org/licenses/gpl-license.php GNU General Public License v2
*
*/
define('IN_PHPBB', true);
$phpbb_root_path = './new_folder/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start initial var setup
//
if ( isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL]) )
{
   $forum_id = ( isset($HTTP_GET_VARS[POST_FORUM_URL]) ) ? intval($HTTP_GET_VARS[POST_FORUM_URL]) : intval($HTTP_POST_VARS[POST_FORUM_URL]);
}
else if ( isset($HTTP_GET_VARS['forum']))
{
   $forum_id = intval($HTTP_GET_VARS['forum']);
}
else
{
   $forum_id = '';
}

$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
$start = ($start < 0) ? 0 : $start;

$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? '' : $script_name . '/';
$root_url = $server_protocol . $server_name . $server_port . '/';
$phpbb_url = $root_url . $script_name;
if (!empty($forum_id)) {
   if ( !empty($db) ) {
      $db->sql_close();
   }
   $url = "viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id";
   header("HTTP/1.1 301 Moved Permanently", TRUE, 301);
   header("Location: " . $phpbb_url . $url);
   exit();
} else {
   if ( !empty($db) ) {
      $db->sql_close();
   }
   $url = "index.$phpEx";
   header("HTTP/1.1 301 Moved Permanently", TRUE, 301);
   header("Location: " . $phpbb_url);
   exit();
}

?>


and create a viewtopic.php file and put this in it :

Code:
<?php
/**
*
* @package phpBB SEO redirection suite
* @version $Id: phpbb_seo_class.php,v 1.0 2006/12/09 13:48:48 dcz Exp $
* @copyright (c) 2006 dcz - www.phpbb-seo.com
* @http://opensource.org/licenses/gpl-license.php GNU General Public License v2
*
*/

define('IN_PHPBB', true);
// You need here to set the correct path to your forum !!!
$phpbb_root_path = './new_folder/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start initial var setup
//
$topic_id = $post_id = 0;
$url = '';
if ( isset($HTTP_GET_VARS[POST_TOPIC_URL]) )
{
   $topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]);
}
else if ( isset($HTTP_GET_VARS['topic']) )
{
   $topic_id = intval($HTTP_GET_VARS['topic']);
}

if ( isset($HTTP_GET_VARS[POST_POST_URL]))
{
   $post_id = intval($HTTP_GET_VARS[POST_POST_URL]);
}


$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
$start = ($start < 0) ? 0 : $start;
if (!$topic_id && !$post_id)
{
   message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? '' : $script_name . '/';
$root_url = $server_protocol . $server_name . $server_port . '/';
$phpbb_url = $root_url . $script_name;
if ($topic_id) {
   if ( !empty($db) ) {
      $db->sql_close();
   }
   $url = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id";
   header("HTTP/1.1 301 Moved Permanently", TRUE, 301);
   header("Location: " . $phpbb_url . $url);
   exit();
} elseif ($post_id) {
   if ( !empty($db) ) {
      $db->sql_close();
   }
   $url = "viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id";
   header("HTTP/1.1 301 Moved Permanently", TRUE, 301);
   header("Location: " . $phpbb_url . $url);
   exit();
} else {
   if ( !empty($db) ) {
      $db->sql_close();
   }
   $url = "index.$phpEx";
   header("HTTP/1.1 301 Moved Permanently", TRUE, 301);
   header("Location: " . $phpbb_url);
   exit();
}

?>



Note that you'll have to replace new_folder by the rel folder name where phpBB is installed in both the created viewforum.php and viewtopic.php and the .htaccess.

The viewtopic.php and viewtopic.php are meant to be uploaded at the root level, in order to redirect old vanilla url : viewtopic.php?t=xx to new_folder/viewtopic.php?t=xx, allowing the zero duplicate to do its job for these too.

You'll have to check headers for these the same way you did for the zero duplicate, since here it's php redirection, we need to make sure.

++[/quote][/quote]
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Installed the SEO Mod completely on Beta sitePosted: Sat Aug 11, 2007 9:52 am    Post subject: Re: Installed the SEO Mod completely on Beta site

Please stop quoting huge post, especially when it does not help.
As well, stop asking about dcz, we're over 2000 users here.

Then, you should not want something you cannot deal with. Using the forum as virtual folder is not that easy, and there is absolutely no urge to do it SEO wise.
Your problems would be solved if you select to use .html for forums.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
cybersaber



Joined: 13 Nov 2006
Posts: 40

Installed the SEO Mod completely on Beta sitePosted: Sat Aug 11, 2007 10:50 am    Post subject: Re: Installed the SEO Mod completely on Beta site

That's pretty rude words my friend. All I need is some help and not disgrace. Plus you are talking about implementing virtual folder thing ... its already implemented on phpbb-seo.com forum .. open your eyes and look for it and that's the reason I asked DCZ for it. And my friend I know DCZ Well enough if he were in place of you .. he must have helped than using rude language like you did.
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Installed the SEO Mod completely on Beta sitePosted: Sat Aug 11, 2007 11:14 am    Post subject: Re: Installed the SEO Mod completely on Beta site

Are these rude words really ?
Just because you don't get what you want ?

Believe me, there was no urge at all to quote 2 times the same huge message just to say you needed a tweak to deal with virtual folder.
And, talking about "is there a simple solution to do it" "no" isn't rude at all IMHO, it's just the opposite of "yes".

Sorry if I sounded rude in your mind, was not my feeling.

And there is no better answer than :

SeO wrote:
Using the forum as virtual folder is not that easy, and there is absolutely no urge to do it SEO wise.
Your problems would be solved if you select to use .html for forums.


Besides, this feature is available for phpBB3 already, I'm not sure you want to work this hard on phpBB2 anymore.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
cybersaber



Joined: 13 Nov 2006
Posts: 40

Installed the SEO Mod completely on Beta sitePosted: Sat Aug 11, 2007 11:29 am    Post subject: Re: Installed the SEO Mod completely on Beta site

Thanx for your reply SeO. I'll see to it. I need to shift the forums to another sub-domain can you provide me the redirection code for that. ??
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
Page 3 of 4 Goto page Previous  1, 2, 3, 4  Next

Navigation Similar Topics

Jump to: