• ¡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

Ayuda Conflicto .htaccess de Xenforo y wordpress

karra82

XenForoUser
Mensajes
19
Puntuación de reacciones
16
Puntos
3
Buenas, he creado una web de noticias con wordpress. Al añadirlo al servidor me crea conflicto los dos por culpa del .htaccess.
Xenforo lo tengo instalado en la raiz del servidor y el blog en una carpeta llamada noticias.
El conflicto me lo da cuando añado esto
Captura.JPG
Y posteriormente me pide wordpress que añada estas lineas:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /noticias/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /noticias/index.php [L]
</IfModule>


Actualmente lo tengo así
# 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
Options +FollowSymlinks



<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}]
RewriteBase /foros
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>

A ver si me pueden ayudar, muchas gracias.
 

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
Déjalo como lo tienes ahora. El problema lo tienes en wordpress que quiere iniciarse en cuanto llamen al dominio (RewriteRule . /noticias/index.php [L]) y no es eso lo que quieres. Deberás colocar un enlace a wordpress en el foro (o en la página principal) que será http://tuDominio.com/noticias/ y en el directorio noticias pones un .htaccess que sea
Insertar CODE, HTML o PHP:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /noticias/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /noticias/index.php [L]
</IfModule>

Espero que te rule bien así.

salud2
 
Arriba