Problémme Zoints seo : Url rewriting pour vbulletin
4 messages • Page 1 sur 1
Consultez la formation URL Rewriting et sites dynamiques de WebRankInfo / Ranking Metrics
Problémme Zoints seo : Url rewriting pour vbulletin
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.
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.
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
et un autre fichier auquel beaucou s'interesse par rapport a des probleme de hack incompatible avec zoint seo
merci!!!
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!!!
4 messages • Page 1 sur 1
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 :
- Optimiser le référencement d'un forum phpBB : réécriture d'URL
- Tutoriel URL Rewriting
- Cindy McCaffrey quitte Google
- Suite de l'article sur le fichier .htaccess : l'URL rewriting
- l'URL Rewriting expliqué aux débutants
- 3ème partie de l'article .htaccess : les réécritures conditionnelles
- L'URL Rewriting expliqué aux débutants
- Comment éviter les contenus dupliqués (avec/sans le www)
- Référencement d'un forum phpBB
- Le référencement de pages PHP
- Liste des backlinks
Cet outil vous permet d'analyser en détails la "popularité" de votre site sur Google. En plus du nombre de liens pris en compte par Google, il calcule le pourcentage de liens internes parmi tous les liens, et il affiche les premières URL trouvées. - Transformer des textes non cliquables en liens
Cet outil vous permet de trouver des pages citant votre site mais ne faisant pas (encore) de lien. Il suffira parfois d'un simple mail pour transformer cette simple citation en lien (backlink).
Qui est en ligne
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 0 invités



le forum