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  
 
   
Simple Sub forum and mod rewrite migration

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
::  
Author Message
murph



Joined: 24 Jun 2006
Posts: 14

Simple Sub forum and mod rewrite migrationPosted: Wed Jun 28, 2006 12:41 pm    Post subject: Simple Sub forum and mod rewrite migration

I have you dynamic meta tags mod installed...on reading the link you gave for the subforum mod addon it talks about XS mod being required...i don't think i have this installed?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15125

Simple Sub forum and mod rewrite migrationPosted: Wed Jun 28, 2006 12:46 pm    Post subject: Re: Simple Sub forum and mod rewrite migration

murph wrote:
I have you dynamic meta tags mod installed...on reading the link you gave for the subforum mod addon it talks about XS mod being required...i don't think i have this installed?


It's a great addition to phpBB2 anyway, faster templating, and does not require modding any files, just uploading Wink

Contrib files for cash mod provided in the release.

XS Mod.

++

_________________
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
murph



Joined: 24 Jun 2006
Posts: 14

Simple Sub forum and mod rewrite migrationPosted: Wed Jun 28, 2006 12:52 pm    Post subject: Re: Simple Sub forum and mod rewrite migration

So do i need to be using an XS template or can i just upload it and continue using my existing normal template?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15125

Simple Sub forum and mod rewrite migrationPosted: Wed Jun 28, 2006 12:58 pm    Post subject: Re: Simple Sub forum and mod rewrite migration

murph wrote:
So do i need to be using an XS template or can i just upload it and continue using my existing normal template?


With Simple sub forum, you need XS mod. XS mod will work with every templates, the XS one using additional templating functions and regular one being more basic.
In both case, it will be faster thanks to the cache system Wink

Don't forget to chmod the cache folder to 777 and better for security if you put an .htaccess file with this inside :
Code:
<Limit GET POST PUT>
Order Allow,Deny
Deny from All
</Limit>


in cache/

++

_________________
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
murph



Joined: 24 Jun 2006
Posts: 14

Simple Sub forum and mod rewrite migrationPosted: Wed Jun 28, 2006 1:34 pm    Post subject: Re: Simple Sub forum and mod rewrite migration

Ok XS installed...there was one file to overwrite...but no hacks in that file Smile

Now to do the Subforum mod.

One question...if i have already installed your dyn meta tag mod...should i delete your mod, then apply the subforum and then the subforum hack you mentioned afterwards?

Or will it be ok to leave your meta tag mod in place, do the subforum hacks and then add the extra subforum/meta tag fix?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15125

Simple Sub forum and mod rewrite migrationPosted: Wed Jun 28, 2006 1:56 pm    Post subject: Re: Simple Sub forum and mod rewrite migration

The fix is meant for the phpBB mixed and Advanced mod Rewrite, no differences at all with the meta tag mod.

So, you won't have to change anything if it's already installed, juts need the add on for the mod rewrites themselves 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
murph



Joined: 24 Jun 2006
Posts: 14

Simple Sub forum and mod rewrite migrationPosted: Wed Jun 28, 2006 2:00 pm    Post subject: Re: Simple Sub forum and mod rewrite migration

Ah...i just realised i may have a problem. I am using a forum i bought off someone else and it uses some kind of rewrite for the urls...but i don't think it's an official released mod. Is this going to cause me problems with using subforums?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15125

Simple Sub forum and mod rewrite migrationPosted: Wed Jun 28, 2006 2:07 pm    Post subject: Re: Simple Sub forum and mod rewrite migration

All right, so I divided the topic as we started to go a bit to far off topic Wink

Anyway, for your last question, it depends on the mod rewrite used.

A link to the forum could help out here to understand.

And it should be possible to migrate to one of the phpBB SEO mod rewrites, since they should be a lot more efficient Wink

Tell me more about your mod rewrite, you should have some code in the page_header.php.

++

_________________
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
murph



Joined: 24 Jun 2006
Posts: 14

Simple Sub forum and mod rewrite migrationPosted: Wed Jun 28, 2006 2:15 pm    Post subject: Re: Simple Sub forum and mod rewrite migration

page_header:
Code:
// Begin Keyword URL Mod
ob_start();

function make_url_friendly($url)
{

    $url = strtolower($url);

    $find = array(' ',
            '&',
            '\r\n',
            '\n',
            '/',
            '\\',
            '+');

    $url = str_replace ($find, '-', $url);

    $find = array(' ',
            'é',
            'è',
            'ë',
            'ê');
   
    $url = str_replace ($find, 'e', $url);
   
    $find = array(' ',
            'ó',
            'ò',
            'ô',
            'ö');
   
    $url = str_replace ($find, 'o', $url);
   
    $find = array(' ',
            'á',
            'à',
            'â',
            'ä');
   
    $url = str_replace ($find, 'a', $url);
   
    $find = array(' ',
            'í',
            'ì',
            'î',
            'ï');
   
    $url = str_replace ($find, 'i', $url);
   
    $find = array(' ',
            'ú',
            'ù',
            'û',
            'ü');
   
    $url = str_replace ($find, 'u', $url);
   
    $find = array('/[^a-z0-9\-<>]/',
            '/[\-]+/',
            '/<[^>]*>/');

    $repl = array('',
            '-',
            '');

    $url =  preg_replace ($find, $repl, $url);

    return $url;

}

function if_query($amp)
{

    if($amp != '')
    {
        return '?';
    }

}
function rewrite_urls($content)
{

    $url_in = array('/(?<!\/)viewforum.php\?f=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
            '/(?<!\/)viewtopic.php\?p=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
            '/(?<!\/)viewtopic.php\?t=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e');

    $url_out = array("make_url_friendly('\\6') . '.f\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
            "make_url_friendly('\\6') . '.p\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
            "make_url_friendly('\\6') . '.t\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'");

    $content = preg_replace($url_in, $url_out, $content);   
    $content = str_replace('="templates/', '="/templates/', $content);
   
    return $content;


// End Keyword URL Mod


I think he said it was a custom written mod?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15125

Simple Sub forum and mod rewrite migrationPosted: Wed Jun 28, 2006 2:27 pm    Post subject: Re: Simple Sub forum and mod rewrite migration

Well, not that custom, this is the webmedic mod rewrite's good old code Wink

So basically the steps will be the same as per the regular one.

Since this subject has already been covered in the French forums, and that it will for sure be interesting for many, I think the proper way to go would be to post a new topic to ask for migration form the webmedic's mod rewrite to the phpBB SEO one's in the phpBB mod Rewrite forum.

This way, will be useful to more people Wink

And, for the pros and cons to migrate, very simple : no cons, only pros Wink

You'll be able to keep the exact same URLs but will get rid of the fancy pagination ones, end up with a zero dupes pagination and with a faster code ( a lot actually ) so ...

++

_________________
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
murph



Joined: 24 Jun 2006
Posts: 14

Simple Sub forum and mod rewrite migrationPosted: Wed Jun 28, 2006 2:44 pm    Post subject: Re: Simple Sub forum and mod rewrite migration

Thread started Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
Page 1 of 1

Navigation Similar Topics

Jump to: