Página 1 de 1

Problema con htaccess  Tema Solucionado

Publicado: 31 Ago 2010, 16:40
por SFC-16
URL: http://www.pesfanworld.com
Versión phpBB: phpBB3 (3.0.7-PL1)
MODs Instalados: Board3 Portal
Mod phpbb3-SEO-Ultimate 0-6-4

Plantilla(s) usada(s): Aeroblue (subsilver)
Servidor:
Actualización desde otra versión:
Conversión desde otro sistema de foros:


Buenas tardes, el problema que tengo con mi foro creo que es bastante simple pero no doy con el.

Al editar archivos me encuentro que la llave {U_INDEX} me lleva a http://www.pesfanworld.com y quiero que me redirija a http://www.pesfanworld.com/index

¿donde edito esto?


Por si lo necesitáis pongo aquí mi htaccess
Spoiler
# 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>

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\.pesfanworld\.com$ [NC]
# RewriteRule ^(.*)$ http://www.pesfanworld.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 http://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]+)/?(page([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 THROUGH USERNAME
RewriteRule ^member/([^/]+)/?$ /memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /search.php?author=$1&sr=$2&start=$4 [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 THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /viewforum.php?forum_uri=$1&start=$3 [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
#####################################################






¡Gracias!

Re: Problema con htaccess

Publicado: 31 Ago 2010, 17:58
por jakk
el htaccess está bien
he tenido el mismo problema que tu (y hay mas gente) y aun no he podido resolverlo de una buena manera, creo que por que nuestros foros estan en la raiz del dominio
de momento lo tengo con un parche temporal mientras no encuentro una solucion buena, te lo dejo por si quieres hacer lo mismo
en el archivo includes functions.php
buscas:
la variable 'U_INDEX' y en esa linea cambias

Código: Seleccionar todo

{$phpbb_root_path}index.$phpEx
por:

Código: Seleccionar todo

http://www.tudominio.com/index.$phpEx
quizas nos ea la mejor solucion, pero asi lo tengo yo de momento

Re: Problema con htaccess

Publicado: 31 Ago 2010, 18:32
por SFC-16
Gracias por la ayuda pero no me ha funcionado. Cuando pulso el botón que me redirige a {U_INDEX} no me lleva a www.pesfanworld.com/index.php si no a www.pesfanworld.com

La parte del functions me ha quedado así
Spoiler
function reapply_sid($url)
{
global $phpEx, $phpbb_root_path;

if ($url === "index.$phpEx")
{
return append_sid("index.$phpEx");
}
else if ($url === "http://www.pesfanworld.com/index.$phpEx")
{
return append_sid("{$phpbb_root_path}index.$phpEx");
}

Y el overall_header así:
Spoiler
<!-- IF S_USER_LOGGED_IN -->
<a class="squarebuttonl" href="{U_PORTAL}"><span>{L_PORTAL}</span></a><div class="navspacel"></div>
<a class="squarebuttonl" href="{U_INDEX}"><span>Foro</span></a><div class="navspacel"></div>
<a class="squarebuttonl" href="search.php"><span>Buscar</span></a><div class="navspacel"></div>
<a class="squarebuttonl" href="{U_PROFILE}"><span>{L_PROFILE}</span></a><div class="navspacel"></div>
<!-- IF S_DISPLAY_PM -->
<a class="squarebuttonl" href="{U_PRIVATEMSGS}"><span>{PRIVATE_MESSAGE_INFO}</span></a><div class="navspacel"></div>
<!-- ENDIF -->

Re: Problema con htaccess

Publicado: 31 Ago 2010, 18:36
por jakk
no es ahi donde debes ponerlo
la linea que debes buscar en el includes/functions.php es:

Código: Seleccionar todo

'U_INDEX'				=> append_sid("{$phpbb_root_path}index.$phpEx"),
y la cambias por:

Código: Seleccionar todo

'U_INDEX'				=> append_sid("http://www.tudominio.com/index.$phpEx"),
la que has editadod ejala como estaba

Re: Problema con htaccess

Publicado: 31 Ago 2010, 18:52
por SFC-16
¡¡Ahora si!! Muchas gracias jakk

Pongo el tema como resuelto ^^

Re: Problema con htaccess

Publicado: 31 Ago 2010, 18:58
por jabilator
En tu htaccess

Después de

Código: Seleccionar todo

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

Añade

Código: Seleccionar todo

DirectoryIndex portal.php index.php index.html index.htm

Edito: He puesto mi respuesta a la vez que lo has solucionado, pero te falta esa linea por la instalación del board3 Portal

Re: Problema con htaccess

Publicado: 31 Ago 2010, 19:11
por jakk
en el primer mensaje ha dejado su htaccess y ya tiene puesta esa linea, no es ese el problema

Re: Problema con htaccess

Publicado: 31 Ago 2010, 19:27
por jabilator
jakk escribió:en el primer mensaje ha dejado su htaccess y ya tiene puesta esa linea, no es ese el problema
Cierto; no lo vi. :cerveza:

Re: Problema con htaccess

Publicado: 07 Sep 2010, 23:15
por SFC-16
Vuelvo a consultar algo, disculpen las molestias.

Tengo un problema con el .htaccess ya que al entrar a www.pesfanworld.com me va al portal, y al entrar en www.pesfanworld.com/index me sigue yendo al portal ¿a que se debe esto?

Muchas gracias amigo.

Dejo mi htaccess


Spoiler
#
# @package phpBB3 Portal a.k.a canverPortal ( www.phpbb3portal.com )
# @version $Id: .htaccess,v 1.7 2008/02/09 08:18:13 angelside Exp $
# @copyright (c) Canver Software - www.canversoft.net
# @license http://opensource.org/licenses/gpl-license.php GNU Public License
#

DirectoryIndex portal.php index.php index.html index.htm

<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} !^pesfanworld\.com$ [NC]
# RewriteRule ^(.*)$ http://pesfanworld.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]+)/?(page([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 THROUGH USERNAME
RewriteRule ^member/([^/]+)/?$ /memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /search.php?author=$1&sr=$2&start=$4 [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 THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /viewforum.php?forum_uri=$1&start=$3 [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 htaccess

Publicado: 07 Sep 2010, 23:40
por HuanManwe
¿por qué aparece este tema como solucionado si no lo está?

Re: Problema con htaccess

Publicado: 07 Sep 2010, 23:50
por jakk
HuanManwe escribió:¿por qué aparece este tema como solucionado si no lo está?
SFC-16 escribió:¡¡Ahora si!! Muchas gracias jakk

Pongo el tema como resuelto ^^
el mismo lo marco como solucionado, sopongo que pensaria que estaba todo bien

yo en el htaccess no veo nada fuera de lo normal, aver si alguien puede ayudarte con este tema, porque yo no tengo ni idea de porque puede ser

Re: Problema con htaccess

Publicado: 08 Sep 2010, 10:59
por jabilator
A mi me va bien

www.pesfanworld.com

entra en el Portal

www.pesfanworld.com/index

entra en el foro

Re: Problema con htaccess

Publicado: 08 Sep 2010, 15:04
por SFC-16
Cierto, ya va bien.

Gracias y disculpen las molestias