Re: MOD SEO Ayuda
Publicado: 17 May 2010, 15:30
me podrian decir entonces en que parte de ese archivo debo poner ese codigo
phpBB España Oficial, Soporte Internacional Oficial del sistema de foros phpBB en Español, extensiones, estilos, traducciones, guías, tutoriales, videos, redes sociales, webmaster.
https://www.phpbb-es.com/foro/
Bien, todo bien hasta el punto que dice: Ejecuta el siguiente script para reescribir las URLs:Haz una copia de seguridad de tu foro phpb.
Descarga Ultimate SEO url en español
Descomprime el fichero phpBB_SEO_Ultimate_SEO_URL_v0.6.2-Es.zip.
Sube el contenido de la carpeta root en la raíz de tu foro, si te pregunta para remplazar dile que si.
Dale permisos chmod 777 a la carpeta phpbb_seo/cache
Para instalar el mod entra en:
http://dominio.com/foro/phpbb_seo/phpbb_seo_install.php
Entra en el panel de control:
http://dominio.com/foro/adm/
Entra en la pestaña PHPBB SEO.
Activa todas las opciones.
Entra en CONFIGURACIÓN DE REESCRITURA DE URL > htaccess.
Copia el contenido del fichero .htaccess de muestra.
Crea un fichero llamado .htaccess en la raíz de tu foro y pega ahí el contenido.
Ejecuta el siguiente script para reescribir las URLs:
http://dominio.com/foro/phpbb_seo/sync_url.php
Copia el contenido de contrib/phpBB_3.0.6_modified_files en la raíz de tu foro.
# 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 lines
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
# RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
# RewriteCond %{HTTP_HOST} !^foromusculacion\.com$ [NC]
# RewriteRule ^(.*)$ http://foromusculacion.com/$1 [QSA,L,R=301]
# DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
#####################################################
# PHPBB SEO REWRITE RULES ALL MODES
#####################################################
# 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 ALL MODES
RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)(-([0-9]+))?\.html$ /viewforum.php?f=$2&start=$4 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^announces/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$2&start=$4 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM ALL MODES
RewriteRule ^([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
# PHPBB FILES ALL MODES
RewriteRule ^resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /download/file.php?id=$2&t=$1 [QSA,L,NC]
# PROFILES ALL MODES WITH ID
RewriteRule ^(member|[a-z0-9_-]*-u)([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC]
# USER MESSAGES ALL MODES WITH ID
RewriteRule ^(member|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /search.php?author_id=$2&sr=$3&start=$5 [QSA,L,NC]
# GROUPS ALL MODES
RewriteRule ^(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$2&start=$4 [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]
# UNREAD POSTS
RewriteRule ^unreadposts(-([0-9]+))?\.html$ /search.php?search_id=unreadposts&start=$2 [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 ALL MODES (SAME DELIM)
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9_-]+)(-([0-9]+))\.html$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9_-]+)\.html$ /viewforum.php?forum_uri=$1 [QSA,L,NC]
# FIX RELATIVE PATHS : FILES
RewriteRule ^.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /$1 [QSA,L,NC,R=301]
# FIX RELATIVE PATHS : IMAGES
RewriteRule ^.+/(styles/.*|images/.*)/$ /$1 [QSA,L,NC,R=301]
# END PHPBB PAGES
#####################################################
creo que te refieres a este archivo /phpbb_seo/phpbb_seo_class.phpjakk escribió:los cambios esos de idioma que comentas se hacen en el archivo phpbb_seo/seo_class.php
Código: Seleccionar todo
var $seo_static = array(
Código: Seleccionar todo
phpbb_seo/includes/setup_phpbb_seo.php
Código: Seleccionar todo
// <== Special for lazy French, others may delete this part
Código: Seleccionar todo
// ==> Especial por Makoto, para idioma esp
if ( strpos($config['default_lang'], 'es') !== false ) {
$this->seo_static['user'] = 'miembro';
$this->seo_static['group'] = 'grupo';
$this->seo_static['global_announce'] = 'anuncios';
$this->seo_static['leaders'] = 'el-equipo';
$this->seo_static['atopic'] = 'temas-activos';
$this->seo_static['utopic'] = 'temas-sin-respuestas';
$this->seo_static['npost'] = 'nuevos-mensajes';
$this->seo_static['urpost'] = 'mensajes-no-leidos';
$this->seo_static['file_index'] = 'archivos';
$this->seo_static['post'] = 'mensajes';
$this->seo_static['thumb'] = 'miniatura';
$this->seo_static['index'] = 'indice';
$this->seo_static['forum'] = 'foro';
}
// <== Especial por Makoto, para idioma esp
Código: Seleccionar todo
[phpBB Debug] PHP Notice: in file /phpbb_seo/phpbb_seo_class.php on line 272: Undefined index: foro
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4380: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3545)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4382: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3545)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4383: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3545)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4384: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3545)
no me habia dado cuenta que me respondiste despues y antes del mensaje de makotojakk escribió:lo has echo de la forma que te dije yo? en mi foro está asi y funciona a la perfeccion
lo puse tal como me indicaste y por eso me da el error, voy a probar con lo que me dijo jakk a ver si se me soluciona el problemaMakoto escribió:has editado el /phpbb_seo/phpbb_seo_class.php¿?
por q la edicion q te di solo debes editar dicho archivo dentro de includes