• ¡Bienvenido a XenFácil!

    Estás viendo el sitio como Invitado. Para poder participar en este sitio

    y obtendrás privilegios adicionales, acceso a otras áreas y mucho mas.

    ¡Es gratis!


    ¿Ya eres miembro? Inicia sesión

Solucionado Ayuda con las direcciones de las secciones.

Estado
Cerrado para nuevas respuestas

Lummox

Miembro
Mensajes
76
Puntuación de reacciones
2
Puntos
8
País
España
Página web
Web
Hola, tengo montado un servidor en casa que da el servicio de host a mi foro (Ubuntu).

El caso es que tengo instalado xenforo en "var/www/web", para ir a mi foro se he de introducir una direccion como; "www.midireccion.es/web".

Bien, tengo instalado tanto xenforo, como xenporta, y xenwiki. Me gustaria que en la direccion aparezca de esta manera cada vez que vas a una seccion:

Portal -> "www.midireccion.es"
Foro -> "www.midireccion.es/foro"
Wiki -> "www.midireccion.es/wiki"

Ahora mismo me aparece asi:

Portal -> "www.midireccion.es/web/"
Foro -> "www.midireccion.es/web/foro/"
Wiki -> "www.midireccion.es/web/wiki/index/

Mi .htaccess esta por defecto configurado asi:


Insertar CODE, HTML o PHP:
#	Mod_security can interfere with uploading of content such as attachments. If you
#	cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#	SecFilterEngine Off
#	SecFilterScanPOST Off
#</IfModule>
 
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default
 
<IfModule mod_rewrite.c>
	RewriteEngine On
 
	#	If you are having problems with the rewrite rules, remove the "#" from the
	#	line that begins "RewriteBase" below. You will also have to change the path
	#	of the rewrite to reflect the path to your XenForo installation.
	#RewriteBase /xenforo
 
	#	This line may be needed to enable WebDAV editing with PHP as a CGI.
	#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
 
	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -l [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^.*$ - [NC,L]
	RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
	RewriteRule ^.*$ index.php [NC,L]
</IfModule>

Como deberia configurarlo para que cada seccion apunte a esas direcciones?.

Tengo activado en las opciones "Usar URLs completas amistosas" y en las opciones de xenporta "Set as Index Controller". En mi servidor esta activado el "RewreiteEngine On".

Un saludo y gracias por la ayuda.
 

lms

Administrador
Mensajes
7.741
Puntuación de reacciones
2.163
Puntos
2.613
Sitio web
xenfacil.com
País
España
Versión de XenForo
2.1.x
PayPal
Donar dinero a este usuario
Página web
Web
Prueba así:
Insertar CODE, HTML o PHP:
# Mod_security can interfere with uploading of content such as attachments. If you
# cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
# SecFilterEngine Off
# SecFilterScanPOST Off
#</IfModule>
 
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default
 
<IfModule mod_rewrite.c>
RewriteEngine On
 
# If you are having problems with the rewrite rules, remove the "#" from the
# line that begins "RewriteBase" below. You will also have to change the path
# of the rewrite to reflect the path to your XenForo installation.
[COLOR=#0000ff][B]RewriteBase /web[/B][/COLOR]
 
# This line may be needed to enable WebDAV editing with PHP as a CGI.
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
 
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
# RewriteEngine On
 
RewriteEngine On
 
RewriteCond %{HTTP_HOST} !^midireccionweb\.es\/web\/$
RewriteRule ^(.*)$ http://midireccionweb\.es\/$1 [R=301,L]

Salud2
 

Lummox

Miembro
Mensajes
76
Puntuación de reacciones
2
Puntos
8
País
España
Página web
Web
Me sale esto:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost 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.

He cambiado:

Insertar CODE, HTML o PHP:
RewriteEngine On
 
RewriteCond %{HTTP_HOST} !^[B]midireccionweb[/B]\.es\/web\/$
RewriteRule ^(.*)$ http://[B]midireccionweb[/B] \.es\/$1 [R=301,L]

Por mi dominio real, pero nada... me sale el error de arriba.

EDITO: He borrado el espacio en blanco que hay aqui:

Insertar CODE, HTML o PHP:
RewriteRule ^(.*)$ http://midireccionweb[SIZE=4][COLOR=#ff0000][B][][/B][/COLOR][/SIZE]\.es\/$1 [R=301,L]

Y lo he dejado asi:

Insertar CODE, HTML o PHP:
RewriteRule ^(.*)$ http://midireccionweb\.es\/$1 [R=301,L]


Y vuelve a cargar la pagina, pero sigue apareciendo como siempre.
 
Estado
Cerrado para nuevas respuestas
Arriba