.httaccess bien configurado

  • Autor Autor disken
  • Fecha de inicio Fecha de inicio
D

disken

Beta
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Buenas, acabo de instalar el vbseo en mi nuevo foro y tambien el sitemap.

La duda que tengo es que al tener que modificar el .httaccess, no estoy seguro si lo hago correctamente.

Asi es como esta por defecto:

Insertar CODE, HTML o PHP:
 # Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /

#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

Esto es lo que tengo que añadir:
Insertar CODE, HTML o PHP:
RewriteEngine On
RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

Yo lo tengo ahora asi:

Insertar CODE, HTML o PHP:
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /

#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

RewriteEngine On
RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

De este modo esta correcto??

Esque lo he comprobado con lo que dice este artículo: [How To] Funciona el mod_rewrite ? - vBulletin SEO Forums

Y no me ha dado resultado.

Un saludo
 
Usa el que viene por defecto. Pero cambia esta línea:

Insertar CODE, HTML o PHP:
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

Con el nombre de tu dominio:

Insertar CODE, HTML o PHP:
#RewriteCond %{HTTP_HOST} !^www\.forotutoriales\.com
#RewriteRule (.*) http://www.forotutoriales.com/$1 [L,R=301]
 
Hecho, entonces asi ya esta todo correcto?

Un saludo
 
Compruébalo de nuevo para saber si no tienes problemas 🙂
 
Insertar CODE, HTML o PHP:
#RewriteCond %{HTTP_HOST} !^www\.forotutoriales\.com
#RewriteRule (.*) http://www.forotutoriales.com/$1 [L,R=301]
[/QUOTE]

Pero para que salgan el tu dominio tienes que Sacar los "#" sino esta desactivado 😉
Saludos.
 
Asi lo tengo, y nada...
 

Temas similares

Atrás
Arriba