Problémme Zoints seo : Url rewriting pour vbulletin

Consultez la formation URL Rewriting et sites dynamiques de WebRankInfo / Ranking Metrics

KaM3-L3oN
WRInaute occasionnel
WRInaute occasionnel
 
Messages: 188
Inscription: Mar Aoû 08, 2006 16:06

Problémme Zoints seo : Url rewriting pour vbulletin

Message le Mar Fév 27, 2007 1:10

Voila bonjour j ' ai un problémme avec le hack de référencement pour vbulletun url rewriting etc...

Lien du hack: http://www.vbulletin.org/forum/showthread.php?t=127336

Mon problémme est le .htaccess il donne:


----------------------------------------
Options +FollowSymlinks
RewriteEngine on
----------------------------------------

Add the following lines at the end of the file
----------------------------------------
RewriteRule ^([a-z0-9_-]*-(f|all)[0-9]+(p[0-9]+|/index[0-9]*)?.html)$ forumdisplay.php/$1 [QSA,L]
RewriteRule ^([a-z0-9_-]*-(t|p)[0-9]+(p[0-9]+|/index[0-9]*)?.html)$ showthread.php/$1 [QSA,L]
RewriteCond %{REQUEST_URI} !(index.php|.css) [NC]
RewriteRule ^(archive|sitemap)/(.*)$ $1/index.php/$2 [QSA,L]
----------------------------------------


Quand je met ce htaccess et que je veux acceder à mon forum sa me met sa:


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@x-dozboard.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.


à mon avis c' est dans le .htaccess mais il faut modifier quoi ? quelle ligne?

Merci.


Bh@Mp0
WRInaute occasionnel
WRInaute occasionnel
 
Messages: 245
Inscription: Mar Jan 18, 2005 19:02

Message le Mar Fév 27, 2007 1:41

Montre ton .htaccess complet (en l'encadrant avec [code][/code] ici ...)
Car je sens une erreur (ou une connerie) dans ton fichier :D

KaM3-L3oN
WRInaute occasionnel
WRInaute occasionnel
 
Messages: 188
Inscription: Mar Aoû 08, 2006 16:06

Message le Mar Fév 27, 2007 10:52

Salut il me fournisse que sa ....

Arcadyan
Nouveau WRInaute
 
Messages: 4
Inscription: Mar Aoû 15, 2006 20:19

Message le Mer Fév 28, 2007 18:03

bonjour, chez moi, ca fonctionne parfaitement...as-tu essayé les différent modes de rewriting? il y en a un qui n'utilise pas le fichier htaccess visiblement....

j'embraye sur ce post, car j'ai tout de meme un probleme....un hack qui n'est pas compatible...j'aurais donc souhaité savoir si dans le htaccess on pouvait mettre une "ligne magique "(dsl j'y connais rien pour ma part) qui empeche le rewriting sur tout ce qui concerne ce hack...je m'explique :

sans le rewriting, les urls de ce hack donnent ce genre de chose
http://www.mondomaine.com.com/forum/vbm ... iaid&cid=3

avec le rewriting activé, ca donne ça

http://www.mondomaine.com.com/forum/?do ... iaid&cid=3


au cas ou ca pourrait aider, voici donc mon htaccess

Code: Tout sélectionner
Options +FollowSymlinks
RewriteEngine on

RewriteRule ^([a-z0-9_\-]*-(f|all)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ forumdisplay.php/$1 [QSA,L]
RewriteRule ^([a-z0-9_\-]*-(t|p)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ showthread.php/$1 [QSA,L]
RewriteCond %{REQUEST_URI} !(index\.php|\.css) [NC]
RewriteRule ^(archive|sitemap)/(.*)$ $1/index.php/$2 [QSA,L]


et un autre fichier auquel beaucou s'interesse par rapport a des probleme de hack incompatible avec zoint seo

Code: Tout sélectionner
if ($vbulletin->options['zointsseo_on'] AND $vbulletin->options['zointsseo_meta_description'] == 2 AND isset($vbulletin->zointsseo['firstposttext']))
{
    $zseo_description = str_replace('"', '', strip_bbcode($vbulletin->zointsseo['firstposttext']));
    $words = preg_split("#[\r\n\s]#", $zseo_description, $vbulletin->options['zointsseo_first_x_words'] + 1, PREG_SPLIT_NO_EMPTY);
    $description = '';
    $i = 0;
    foreach ($words as $word)
    {
        $description .= " $word";
        if (++$i == $vbulletin->options['zointsseo_first_x_words']) break;
    }
    $description = substr($description,1);
    $output = str_replace('{DESCRIPTION}',$description,$output);
}
if ($vbulletin->options['zointsseo_on'] AND $vbulletin->options['zointsseo_fix_index'])
{
    $output = preg_replace(
        array(
            "#<a href=\"index.php#i",
            "#<a href=\"" . preg_quote($vbulletin->options['bburl'],'#') . "/index.php#i"
        ), array(
            '<a href="' . $vbulletin->options['bburl'] . '/',
            '<a href="' . $vbulletin->options['bburl'] . '/'
        ), $output
    );
}
if ($vbulletin->options['zointsseo_on'])
{
    if (strpos($output, '<a href="faq.php'))
    {
        $matches = array();
        preg_match_all("#<a href=\"faq\.php(.*?)\"(.*?)>#i", $output, $matches, PREG_SET_ORDER);
       
        if (count($matches))
        {
            foreach ($matches as $faqlink)
            {
                if (strpos($faqlink[0], 'rel="nofollow"') === false)
                {
                    $output = str_replace($faqlink[0], "<a href=\"faq.php$faqlink[1]\"$faqlink[2] rel=\"nofollow\">", $output);
                }
            }
        }
    }
   
    if
    if (strpos($output, '"#top"'))
    {
        $output = str_replace('"#top"', '"#top" rel="nofollow"', $output);
    }
    if ($vbulletin->options['zointsseo_rewrite_urls'] == 2)
    {
        $output = str_replace("archive/index.php", "archive/", $output);
    }
   
    if ($vbulletin->options['zointsseo_rewrite_sitemap'])
    {
        $output = preg_replace(
            array(
                "#<a href=\"archive/#i",
                "#<a href=\"" . preg_quote($vbulletin->options['bburl'],'#') . "/archive/#i"
            ), array(
                '<a href="sitemap/',
                '<a href="' . $vbulletin->options['bburl'] . '/sitemap/'
            ), $output
        );
    }
}


merci!!!


Formation recommandée sur ce thème :

Formation URL Rewriting et sites dynamiques : apprenez comment mettre en place la réécriture d'URL, comment optimiser vos URL et profiter de vos pages dynamiques pour booster votre référencement. Formation animée par Olivier Duffez et Fabien Facériès, experts en référencement naturel.

Tous les détails sur le site Ranking Metrics : programme, prix, dates et lieux, inscription en ligne.

Lectures recommandées sur ce thème :



Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 0 invités