Página 2 de 2

Re: Problema con portal y htaccess

Publicado: 21 Sep 2010, 04:03
por leviatan21
faltó el includes/functions.php.txt :x

Re: Problema con portal y htaccess

Publicado: 21 Sep 2010, 04:25
por ukrock
la verdad es q no había leído eso...
hecho tambien...
espero tus escritos...

Re: Problema con portal y htaccess

Publicado: 21 Sep 2010, 04:43
por leviatan21
Sigue estos pasos
1 )

Abrir :
raíz/includes/functions.php

Buscar : ( línea 4102 )

Código: Seleccionar todo

    define('HEADER_INC', true); 
Después, agregar :

Código: Seleccionar todo

    //-- [+] MOD: phpBB3 Portal ---------------------------------------------
    //-- add
    //
    $user->add_lang('portal');
    //
    //-- [-] MOD: phpBB3 Portal ---------------------------------------------
 
2 )

Abrir :
raíz/phpbb_seo/phpbb_seo_class.php

Buscar : ( línea 37 )

Código: Seleccionar todo

    var    $seo_static = array( 'forum' => 'forum', 'topic' => 'topic', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => '', 'global_announce' => 'announces', 'leaders' => 'the-team', 'atopic' => 'active-topics', 'utopic' => 'unanswered', 'npost' => 'newposts', 'urpost' => 'unreadposts', 'pagination' => 'page', 'gz_ext' => '.gz' );
 
Reemplazar, por :

Código: Seleccionar todo

    var    $seo_static = array( 'forum' => 'forum', 'topic' => 'topic', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => 'forum', 'global_announce' => 'announces', 'leaders' => 'the-team', 'atopic' => 'active-topics', 'utopic' => 'unanswered', 'npost' => 'newposts', 'urpost' => 'unreadposts', 'pagination' => 'page', 'gz_ext' => '.gz' );
 
Guardar los cambios, subir ambos archivos al FTP y probemos :mrgreen:

Re: Problema con portal y htaccess

Publicado: 21 Sep 2010, 05:01
por ukrock
listo...
no funciona pero me parece q la orden q tiene es ir a forum.html y el índice q buscamos es index.php... sera?
abrazo!

Re: Problema con portal y htaccess

Publicado: 21 Sep 2010, 06:34
por leviatan21
So no me equivoco hay un modo de hacerlo desde el ACP del seo ¿?
la verdad no puedo saberlo desde el código .

Otra opción sería por .htaccess agregando :

Código: Seleccionar todo

###############
# FORUM INDEX
RewriteRule ^forum\.html$ index.php [QSA,L,NC]
Justo antes de

Código: Seleccionar todo

# FORUM

Re: Problema con portal y htaccess

Publicado: 21 Sep 2010, 14:09
por ukrock
lo hice pero no cambió nada...
quieres q te adjunte algún código?
ya tengo copia de seguridad ;)
abrazo!

Re: Problema con portal y htaccess

Publicado: 21 Sep 2010, 16:28
por leviatan21
Si adjuntame el .htaccess :roll:

Re: Problema con portal y htaccess

Publicado: 21 Sep 2010, 17:01
por ukrock
ahí te lo paso

Re: Problema con portal y htaccess  Tema Solucionado

Publicado: 21 Sep 2010, 17:57
por leviatan21
Había 2 errores, prueba con este :

Código: Seleccionar todo

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
    
DirectoryIndex portal.php index.php index.html index.htm

# 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} !^www\.ukrock\.com\.ar$ [NC]
# RewriteRule ^(.*)$ http://www.ukrock.com.ar/$1 [QSA,L,R=301]
# RewriteRule ^page-([0-9A-Za-z]+)\.html$ portal.php?pages=$1 [L,QSA]

# 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 ^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
#####################################################

Re: Problema con portal y htaccess

Publicado: 21 Sep 2010, 18:04
por ukrock
listo...
solucionado...
cuando estoy en el indice general hago click en portal y vulve al índice pero eso casi ni lo tomo en cuenta...
mil gracias primaverales leviatan21 x tu ayuda y paciencia...
no será la última vez q molesto pero algún día llegaré a arreglarmelas mejor...
un abrazo!
ariel

Re: Problema con portal y htaccess

Publicado: 21 Sep 2010, 18:28
por leviatan21
ukrock escribió:cuando estoy en el indice general hago click en portal y vulve al índice pero eso casi ni lo tomo en cuenta...
Eso es muy fácil de solucionar

Abrir :
raíz/includes/functions.php

Buscar :

Código: Seleccionar todo

        'U_INDEX'                => append_sid("{$phpbb_root_path}index.$phpEx"), 
Después, agregar :

Código: Seleccionar todo

		//-- [+] MOD: phpBB3 Portal ---------------------------------------------
		//-- add
		//
		'U_PORTAL' 				=> append_sid("{$phpbb_root_path}portal.$phpEx"),
		'S_PORTAL_COPY' 		=> $user->lang['PORTAL_COPY'],
		//
		//-- [-] MOD: phpBB3 Portal ---------------------------------------------

ukrock escribió:mil gracias primaverales leviatan21 x tu ayuda y paciencia...
Hombre, para eso estamos aqui :chulo:

ukrock escribió:no será la última vez q molesto pero algún día llegaré a arreglarmelas mejor...
un abrazo!
ariel
Espero que si y espero que no :
Que no, significa que aprendes, que si, significa que no decaes e insistes :ok: