Página 1 de 1

Board3 Problema con .htaccess

Publicado: 05 May 2016, 06:55
por Zaragan
SPOILER_SHOW
URL: http://mshadows.eu
Estilo(s) usuado(s): Prosilver
Extensiones instaladas: Advanced BBCode Box, Board3 Portal, Board Announcements, Lightbox, Password Strength, Upload Extensions.
Versión de phpBB: 3.1.8
Nombre y versión de la Extensión: Board3 Portal 2.1.0
URL de descarga: http://www.board3.de/
Servidor: De pago 1&1
Si es una actualización desde otra versión: No
He hecho una migración de host y todo ha salido bien salvo el portal. No se porque no lo detecta como pagina principal y da error 404. No he tocado absolutamente nada salvo el config para editar los datos y el .htaccess esta exactamente como tendría (o como funcionaba). He notado que entrando directamente desde (http://mshadows.eu/app.php/portal) si que funciona.

Código: Seleccionar todo

<IfModule mod_rewrite.c>
RewriteEngine on

#
# Uncomment the statement below if URL rewriting doesn't
# work properly. If you installed phpBB in a subdirectory
# of your site, properly set the argument for the statement.
# e.g.: if your domain is test.com and you installed phpBB
# in http://www.test.com/phpBB/index.php you have to set
# the statement RewriteBase /phpBB/
#
#RewriteBase /

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

#
# The following 3 lines will rewrite URLs passed through the front controller
# to not require app.php in the actual URL. In other words, a controller is
# by default accessed at /app.php/my/controller, but can also be accessed at
# /my/controller
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]

#
# If symbolic links are not already being followed,
# uncomment the line below.
# http://anothersysadmin.wordpress.com/2008/06/10/mod_rewrite-forbidden-403-with-apache-228/
#
#Options +FollowSymLinks
</IfModule>

# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
# module mod_authz_host to a new module called mod_access_compat (which may be
# disabled) and a new "Require" syntax has been introduced to mod_authz_host.
# We could just conditionally provide both versions, but unfortunately Apache
# does not explicitly tell us its version if the module mod_version is not
# available. In this case, we check for the availability of module
# mod_authz_core (which should be on 2.4 or higher only) as a best guess.
<IfModule mod_version.c>
	<IfVersion < 2.4>
		<Files "config.php">
			Order Allow,Deny
			Deny from All
		</Files>
		<Files "common.php">
			Order Allow,Deny
			Deny from All
		</Files>
	</IfVersion>
	<IfVersion >= 2.4>
		<Files "config.php">
			Require all denied
		</Files>
		<Files "common.php">
			Require all denied
		</Files>
	</IfVersion>
</IfModule>
<IfModule !mod_version.c>
	<IfModule !mod_authz_core.c>
		<Files "config.php">
			Order Allow,Deny
			Deny from All
		</Files>
		<Files "common.php">
			Order Allow,Deny
			Deny from All
		</Files>
	</IfModule>
	<IfModule mod_authz_core.c>
		<Files "config.php">
			Require all denied
		</Files>
		<Files "common.php">
			Require all denied
		</Files>
	</IfModule>
</IfModule>
DirectoryIndex portal.php index.php index.html index.htm
Saludos!

Re: Board3 Problema con .htaccess

Publicado: 05 May 2016, 16:36
por andares
Para 3.1 la ultima linea en el .htaccess deberia estar asi:
DirectoryIndex app.php index.php index.html index.htm

Re: Board3 Problema con .htaccess

Publicado: 05 May 2016, 19:58
por Zaragan
Corregido el .htaccess pero sigue sin resolverse.

Re: Board3 Problema con .htaccess  Tema Solucionado

Publicado: 05 May 2016, 20:06
por andares
Tienes activado URL Rewrite?

Si no activa desde el PCA->General->Configuración del servidor->Configuración del servidor->Configuración de ruta->Habilitar reescritura de URL

Re: Board3 Problema con .htaccess

Publicado: 05 May 2016, 21:13
por Zaragan
Instalé debian desde 0 y el apache viene con el modulo de rewrite desactivado por defecto y no me di cuenta de eso, una vez activado en apache la opción en el panel de control se ha activado sola (porque en el otro foro lo tenia activado). Muchísimas gracias por tu ayuda, ya tengo estos pasos bien guardados para la próxima vez.

Saludos!