希望你能帮助我,当我试图访问www.boxer-motors.com“articulos”/“entrevista”然后点击“seguir leyendo”时,应该重定向到完整的entrevista文章,但是insted重定向到我“articulos”/ “编辑”。提前致谢
RewriteEngine On
RewriteRule ^noticias/$ /noticias/nacionales/ [R]
RewriteRule ^noticias$ /noticias/nacionales/ [R]
RewriteRule ^noticias/nacionales$ noticias.php?t=1&p=$1 [L]
RewriteRule ^noticias/nacionales/$ noticias.php?t=1&p=$1 [L]
RewriteRule ^noticias/nacionales/([0-9]*)$ noticias.php?t=1&p=$1 [L]
RewriteRule ^noticias/nacionales/([0-9]*)/$ noticias.php?t=1&p=$1 [L]
RewriteRule ^noticias/nacionales/([^/]*)$ noticia_detalle.php?t=1&n=$1 [L]
RewriteRule ^noticias/nacionales/([^/]*)/$ noticia_detalle.php?t=1&n=$1 [L]
RewriteRule ^noticias/internacionales$ noticias.php?t=2&p=$1 [L]
RewriteRule ^noticias/internacionales/$ noticias.php?t=2&p=$1 [L]
RewriteRule ^noticias/internacionales/([0-9]*)$ noticias.php?t=2&p=$1 [L]
RewriteRule ^noticias/internacionales/([0-9]*)/$ noticias.php?t=2&p=$1 [L]
RewriteRule ^noticias/internacionales/([^/]*)$ noticia_detalle.php?t=2&n=$1 [L]
RewriteRule ^noticias/internacionales/([^/]*)/$ noticia_detalle.php?t=2&n=$1 [L]
RewriteRule ^articulos/$ /articulos/entrevista/ [L]
RewriteRule ^articulos$ /articulos/entrevista/ [R]
RewriteRule ^articulos/([^/]*)$ articulos.php?t=$1&p=1 [L]
RewriteRule ^articulos/([^/]*)/$ articulos.php?t=$1&p=1 [L]
RewriteRule ^articulos/([^/]*)/([0-9]*)$ articulos.php?t=$1&p=$2 [L]
RewriteRule ^articulos/([^/]*)/([0-9]*)/$ articulos.php?t=$1&p=$2 [L]
RewriteRule ^articulos/([^/]*)/([^/]*)$ articulo_detalle.php? t=$1&n=$2 [L]
RewriteRule ^articulos/([^/]*)/([^/]*)/$ articulo_detalle.php?t=$1&n=$2 [L]
答案 0 :(得分:0)
问题似乎不在您的.htaccess
文件中:
调用此网址:http://boxer-motors.com/articulos/entrevistas/glauco-rivera/
将在内部致电:http://boxer-motors.com/articulo_detalle.php?t=entrevistas&n=glauco-rivera
第二次通话会将您重定向到:http://boxer-motors.com/articulos/editorial/
当我在浏览器中停用javascript时,页面加载没有问题,所以这是一个与javascript相关的问题。