Mod_rewrite ayudar?

  • Daniel
  • Student
  • Student
  • No Avatar
  • Registrado: Jun 18, 2004
  • Mensajes: 91
  • Status: Offline

Nota Octubre 28th, 2004, 2:01 pm

Hey, dice antes de cada uso Serach hice :) Pongo esto en este foro en lugar en que tiene que ver con la búsqueda eninges

De todos modos tengo un foro y me he conseguido volver a escribir la URL de lo que son como / forum1.php de todos modos cuando hago clic en el enlace que va a un 404...¿Tengo que volver a dirigir de alguna manera? ¿O es el problema en el archivo. Htaccess?

Aquí está el código

Código: [ Select ]
RewriteEngine On
RewriteRule ^forums.* /index.php


RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* /viewforum.php?f=&topicdays=&start=
RewriteRule ^mforum([0-9]*).* /viewforum.php?f=&mark=topic
RewriteRule ^forum([0-9]*).* /viewforum.php?f=

RewriteRule ^ptopic([0-9]*).* /viewtopic.php?t=&view=previous
RewriteRule ^ntopic([0-9]*).* /viewtopic.php?t=&view=next
RewriteRule ^newtopic([0-9]*).* /viewtopic.php?t=&view=newest
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* /viewtopic.php?t=&postdays=&postorder=&start=
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([0-9]*)-([a-zA-Z]*)-([a-zA-Z]*).* /viewtopic.php?t=&start=&postdays=&postorder=&highlight=
RewriteRule ^ftopic([0-9]*)-([0-9]*).* /viewtopic.php?t=&start=
RewriteRule ^ftopic([0-9]*).* /viewtopic.php?t=
RewriteRule ^sutra([0-9]*).* /viewtopic.php?p=
  1. RewriteEngine On
  2. RewriteRule ^forums.* /index.php
  3. RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* /viewforum.php?f=&topicdays=&start=
  4. RewriteRule ^mforum([0-9]*).* /viewforum.php?f=&mark=topic
  5. RewriteRule ^forum([0-9]*).* /viewforum.php?f=
  6. RewriteRule ^ptopic([0-9]*).* /viewtopic.php?t=&view=previous
  7. RewriteRule ^ntopic([0-9]*).* /viewtopic.php?t=&view=next
  8. RewriteRule ^newtopic([0-9]*).* /viewtopic.php?t=&view=newest
  9. RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* /viewtopic.php?t=&postdays=&postorder=&start=
  10. RewriteRule ^ftopic([0-9]*)-([0-9]*)-([0-9]*)-([a-zA-Z]*)-([a-zA-Z]*).* /viewtopic.php?t=&start=&postdays=&postorder=&highlight=
  11. RewriteRule ^ftopic([0-9]*)-([0-9]*).* /viewtopic.php?t=&start=
  12. RewriteRule ^ftopic([0-9]*).* /viewtopic.php?t=
  13. RewriteRule ^sutra([0-9]*).* /viewtopic.php?p=
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Octubre 28th, 2004, 2:01 pm

  • djtheropy
  • Graduate
  • Graduate
  • No Avatar
  • Registrado: Nov 05, 2004
  • Mensajes: 111
  • Status: Offline

Nota Noviembre 5th, 2004, 4:04 pm

Su URL debería haber sido reescrito para forum1.html no forum1.php
  • djtheropy
  • Graduate
  • Graduate
  • No Avatar
  • Registrado: Nov 05, 2004
  • Mensajes: 111
  • Status: Offline

Nota Noviembre 5th, 2004, 4:06 pm

también es su foro un foro phpBB (como este foro) en caso afirmativo ¿ha utilizado el poder conocer SEOl mod primero? Creo que podría ser su problema!
  • woza
  • Novice
  • Novice
  • Avatar de Usuario
  • Registrado: Nov 06, 2004
  • Mensajes: 17
  • Loc: Ilkley, UK
  • Status: Offline

Nota Noviembre 6th, 2004, 4:55 pm

Tengo un foro phpBB más y tener esto como mi htaccess archivo. Obras un placer! Espero que ayuda.
Quote:
El Reescribirmotor
RewriteRule ^ foros .* index.php [L, NC]
RewriteRule ^ post-([0-9] *). Html y poner de relieve = ([a-zA-Z0-9] *) sutra.html $ 1 & destacar = $ 2 [L, NC]
RewriteRule ^ post-([0-9 ]*).* sutra.html $ 1 [L, NC]
RewriteRule ^ sondeo de opinión-([0-9 ]*)-([ 0-9 ]*)-([ a-zA-Z ]*).* ftopic.html $ 1 & postdays = $ 2 & postorder = $ 3 & votación viewresult = [L , NC]
RewriteRule ^ sobre ([0-9] *). html y poner de relieve = ([a-zA-Z0-9] *) ftopic.html $ 1 & destacar = $ 2 [L, NC]
RewriteRule ^ sobre ([0-9] *). Html = & ver más reciente ftopic.html $ 1 & ver = más nuevo [L, NC]
RewriteRule ^ sobre ([0-9 ]*)-([ 0-9 ]*)-([ a-zA-Z ]*)-([ 0-9 ]*).* ftopic.html $ 1 & postdays = $ 2 & postorder = $ 3 & start = $ 4 [L, NC]
RewriteRule ^ sobre ([0-9 ]*)-([ 0-9 ]*).* ftopic.html $ 1 & start = $ 2 [L, NC]
RewriteRule ^ sobre ([0-9 ]*).* ftopic.html $ 1 [L, NC]
RewriteRule ^ sobre ([0-9] *). Ftopic html. html $ 1 & start = $ 2 & postdays = $ 3 & postorder = $ 4 & destacar = $ 5 [L, NC]
RewriteRule ^ marca-foro ([0-9] *). Html * forum.html $ 1 & marca = temas [L, NC]
RewriteRule ^ actualizaciones-topic ([0-9] *). Html * ftopic.html $ 1 & ver = tema [L, NC]
RewriteRule ^ stop-actualizaciones-topic ([0-9] *). Html * ftopic.html $ 1 = & Dejar de vigilar tema [L, NC]
RewriteRule ^ forum ([0-9] *). Html forum.html $ 1 [L, NC]
RewriteRule ^ forum ([0-9 ]*).* forum.html $ 1 [L, NC]
RewriteRule ^ tema-([0-9 ]*)-([ 0-9 ]*)-([ 0-9 ]*).* foro. html $ 1 & topicdays = $ 2 & start = $ 3 [L, NC]
RewriteRule ^ ptopic ([0-9 ]*).* ftopic.html $ 1 & ver = anterior [L, NC]
RewriteRule ^ ntopic ([0-9 ]*).* ftopic.html $ 1 & ver = siguiente [L, NC]
  • madmonk
  • Mastermind
  • Mastermind
  • No Avatar
  • Registrado: May 04, 2004
  • Mensajes: 2115
  • Loc: australia
  • Status: Offline

Nota Noviembre 7th, 2004, 2:11 am

Quote:
De todos modos tengo un foro y mi pude volver a escribir la url por lo que son como / forum1.php de todos modos cuando yo haga clic en el vínculo que va a un 404...¿Tengo que volver a dirigir de alguna manera? ¿O es el problema en el archivo. Htaccess?


yeah reescribir su mod es un error. véase el ejemplo anterior. :-)
Tattoos Gallery
  • Daniel
  • Student
  • Student
  • No Avatar
  • Registrado: Jun 18, 2004
  • Mensajes: 91
  • Status: Offline

Nota Noviembre 7th, 2004, 4:51 am

Ok he encontrado otro mejor y todo funciona, excepto que usted no puede ver la 2 ª páginas de los temas. Simplemente carga la primera vez.

Aquí está mi htaccess.

Código: [ Select ]
RewriteEngine On
RewriteRule ^forums.* index.php
RewriteRule ^forum([0-9]*).* viewforum.php?f=&mark=topic
RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=&topicdays=&start=
RewriteRule ^forum([0-9]*).* viewforum.php?f=
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=&view=previous
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=&view=next
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=&postdays=&postorder=&start=
RewriteRule ^ftopic([0-9]*)-([0-9]*).* viewtopic.php?t=&start=
RewriteRule ^ftopic([0-9]*).* viewtopic.php?t=
RewriteRule ^ftopic([0-9]*).html viewtopic.php?t=&start=&postdays=&postorder=&highlight=
RewriteRule ^sutra([0-9]*).* viewtopic.php?p=
  1. RewriteEngine On
  2. RewriteRule ^forums.* index.php
  3. RewriteRule ^forum([0-9]*).* viewforum.php?f=&mark=topic
  4. RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=&topicdays=&start=
  5. RewriteRule ^forum([0-9]*).* viewforum.php?f=
  6. RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=&view=previous
  7. RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=&view=next
  8. RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=&postdays=&postorder=&start=
  9. RewriteRule ^ftopic([0-9]*)-([0-9]*).* viewtopic.php?t=&start=
  10. RewriteRule ^ftopic([0-9]*).* viewtopic.php?t=
  11. RewriteRule ^ftopic([0-9]*).html viewtopic.php?t=&start=&postdays=&postorder=&highlight=
  12. RewriteRule ^sutra([0-9]*).* viewtopic.php?p=


Y esto es lo que puse en la page_header.php después de
Código: [ Select ]
//
// Generate logged in/logged out status
//
  1. //
  2. // Generate logged in/logged out status
  3. //
Código: [ Select ]
ob_start();
function replace_for_mod_rewrite(&$s)
{
$urlin =
array(
"'(?<!/)viewforum.php\?f=([0-9]*)&topicdays=([0-9]*)&start=([0-9]*)'",
"'(?<!/)viewforum.php\?f=([0-9]*)&mark=topics'",
"'(?<!/)viewforum.php\?f=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&view=previous'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&view=next'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&start=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&start=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&highlight=([a-zA-Z0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&start=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)'",
"'(?<!/)viewtopic.php&p=([0-9]*)'",
"'(?<!/)viewtopic.php\?p=([0-9]*)'",
);
$urlout = array(
"viewforum\1-\2-\3.html",
"forum\1.html",
"forum\1.html",
"ptopic\1.html",
"ntopic\1.html",
"ftopic\1-\2-\3-\4.html",
"ftopic\1.html",
"ftopic\1-\2.html",
"ftopic\1.html",
"sutra\1.html",
"sutra\1.html",
);
$s = preg_replace($urlin, $urlout, $s);
return $s;
}
  1. ob_start();
  2. function replace_for_mod_rewrite(&$s)
  3. {
  4. $urlin =
  5. array(
  6. "'(?<!/)viewforum.php\?f=([0-9]*)&topicdays=([0-9]*)&start=([0-9]*)'",
  7. "'(?<!/)viewforum.php\?f=([0-9]*)&mark=topics'",
  8. "'(?<!/)viewforum.php\?f=([0-9]*)'",
  9. "'(?<!/)viewtopic.php\?t=([0-9]*)&view=previous'",
  10. "'(?<!/)viewtopic.php\?t=([0-9]*)&view=next'",
  11. "'(?<!/)viewtopic.php\?t=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&start=([0-9]*)'",
  12. "'(?<!/)viewtopic.php\?t=([0-9]*)&start=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&highlight=([a-zA-Z0-9]*)'",
  13. "'(?<!/)viewtopic.php\?t=([0-9]*)&start=([0-9]*)'",
  14. "'(?<!/)viewtopic.php\?t=([0-9]*)'",
  15. "'(?<!/)viewtopic.php&p=([0-9]*)'",
  16. "'(?<!/)viewtopic.php\?p=([0-9]*)'",
  17. );
  18. $urlout = array(
  19. "viewforum\1-\2-\3.html",
  20. "forum\1.html",
  21. "forum\1.html",
  22. "ptopic\1.html",
  23. "ntopic\1.html",
  24. "ftopic\1-\2-\3-\4.html",
  25. "ftopic\1.html",
  26. "ftopic\1-\2.html",
  27. "ftopic\1.html",
  28. "sutra\1.html",
  29. "sutra\1.html",
  30. );
  31. $s = preg_replace($urlin, $urlout, $s);
  32. return $s;
  33. }
  • djtheropy
  • Graduate
  • Graduate
  • No Avatar
  • Registrado: Nov 05, 2004
  • Mensajes: 111
  • Status: Offline

Nota Noviembre 7th, 2004, 4:37 pm

Aquí está el código completo y todos los archivos que se necesitan para ser editados para mod_rewrite para foros phpBB

Código: [ Select ]
includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#

//
// Generate logged in/logged out status
//

#
#-----[ AFTER, ADD ]------------------------------------------
#

if ( !$userdata['session_logged_in'] )
{
ob_start();
function replace_for_mod_rewrite(&$s)
{
$urlin =
array(
"'(?<!/)viewforum.php\?f=([0-9]*)&amp;topicdays=([0-9]*)&amp;start=([0-9]*)'",
"'(?<!/)viewforum.php\?f=([0-9]*)&amp;mark=topics'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;watch=topic*'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;unwatch=topic*'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;highlight=*'",
"'(?<!/)viewforum.php\?f=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;view=previous'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;view=next'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;postdays=([0-9]*)&amp;postorder=([a-zA-Z]*)&amp;vote=viewresult'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;postdays=([0-9]*)&amp;postorder=([a-zA-Z]*)&amp;start=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;start=([0-9]*)&amp;postdays=([0-9]*)&amp;postorder=([a-zA-Z]*)&amp;highlight=([a-zA-Z0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&amp;start=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)'",
"'(?<!/)viewtopic.php&amp;p=([0-9]*)'",
"'(?<!/)viewtopic.php\?p=([0-9]*)'",
);
$urlout = array(
"topic-\1-\2-\3.html",
"mark-forum\1.html",
"updates-topic\1.html",
"stop-updates-topic\1.html",
"about\1.html&amp;highlight=\2",
"forum-\1.html",
"ptopic\1.html",
"ntopic\1.html",
"view-poll\1-\2-\3.html",
"about\1-\2-\3-\4.html",
"about\1.html",
"about\1-\2.html",
"about\1.html",
"post-\1.html",
"post-\1.html",
);
$s = preg_replace($urlin, $urlout, $s);
return $s;
}
}
  1. includes/page_header.php
  2. #
  3. #-----[ FIND ]------------------------------------------
  4. #
  5. //
  6. // Generate logged in/logged out status
  7. //
  8. #
  9. #-----[ AFTER, ADD ]------------------------------------------
  10. #
  11. if ( !$userdata['session_logged_in'] )
  12. {
  13. ob_start();
  14. function replace_for_mod_rewrite(&$s)
  15. {
  16. $urlin =
  17. array(
  18. "'(?<!/)viewforum.php\?f=([0-9]*)&amp;topicdays=([0-9]*)&amp;start=([0-9]*)'",
  19. "'(?<!/)viewforum.php\?f=([0-9]*)&amp;mark=topics'",
  20. "'(?<!/)viewtopic.php\?t=([0-9]*)&amp;watch=topic*'",
  21. "'(?<!/)viewtopic.php\?t=([0-9]*)&amp;unwatch=topic*'",
  22. "'(?<!/)viewtopic.php\?t=([0-9]*)&amp;highlight=*'",
  23. "'(?<!/)viewforum.php\?f=([0-9]*)'",
  24. "'(?<!/)viewtopic.php\?t=([0-9]*)&amp;view=previous'",
  25. "'(?<!/)viewtopic.php\?t=([0-9]*)&amp;view=next'",
  26. "'(?<!/)viewtopic.php\?t=([0-9]*)&amp;postdays=([0-9]*)&amp;postorder=([a-zA-Z]*)&amp;vote=viewresult'",
  27. "'(?<!/)viewtopic.php\?t=([0-9]*)&amp;postdays=([0-9]*)&amp;postorder=([a-zA-Z]*)&amp;start=([0-9]*)'",
  28. "'(?<!/)viewtopic.php\?t=([0-9]*)&amp;start=([0-9]*)&amp;postdays=([0-9]*)&amp;postorder=([a-zA-Z]*)&amp;highlight=([a-zA-Z0-9]*)'",
  29. "'(?<!/)viewtopic.php\?t=([0-9]*)&amp;start=([0-9]*)'",
  30. "'(?<!/)viewtopic.php\?t=([0-9]*)'",
  31. "'(?<!/)viewtopic.php&amp;p=([0-9]*)'",
  32. "'(?<!/)viewtopic.php\?p=([0-9]*)'",
  33. );
  34. $urlout = array(
  35. "topic-\1-\2-\3.html",
  36. "mark-forum\1.html",
  37. "updates-topic\1.html",
  38. "stop-updates-topic\1.html",
  39. "about\1.html&amp;highlight=\2",
  40. "forum-\1.html",
  41. "ptopic\1.html",
  42. "ntopic\1.html",
  43. "view-poll\1-\2-\3.html",
  44. "about\1-\2-\3-\4.html",
  45. "about\1.html",
  46. "about\1-\2.html",
  47. "about\1.html",
  48. "post-\1.html",
  49. "post-\1.html",
  50. );
  51. $s = preg_replace($urlin, $urlout, $s);
  52. return $s;
  53. }
  54. }


Código: [ Select ]
includes/page_tail.php

#
#-----[ FIND ]------------------------------------------
#

$db->sql_close();

#
#-----[ AFTER, ADD ]------------------------------------------
#

if ( !$userdata['session_logged_in'] )
{
$contents = ob_get_contents();
ob_end_clean();
echo replace_for_mod_rewrite($contents);
global $dbg_starttime;
}
  1. includes/page_tail.php
  2. #
  3. #-----[ FIND ]------------------------------------------
  4. #
  5. $db->sql_close();
  6. #
  7. #-----[ AFTER, ADD ]------------------------------------------
  8. #
  9. if ( !$userdata['session_logged_in'] )
  10. {
  11. $contents = ob_get_contents();
  12. ob_end_clean();
  13. echo replace_for_mod_rewrite($contents);
  14. global $dbg_starttime;
  15. }


Código: [ Select ]
.htaccess (Should be in forum root)

#
#-----[ ADD ]------------------------------------------


RewriteEngine On
RewriteRule ^forums.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) sutra.html&highlight= [L,NC]
RewriteRule ^post-([0-9]*).* sutra.html [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* ftopic.html&postdays=&postorder=&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) ftopic.html&highlight= [L,NC]
RewriteRule ^about([0-9]*).html&view=newest ftopic.html&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* ftopic.html&postdays=&postorder=&start= [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* ftopic.html&start= [L,NC]
RewriteRule ^about([0-9]*).* ftopic.html [L,NC]
RewriteRule ^about([0-9]*).html ftopic.html&start=&postdays=&postorder=&highlight= [L,NC]
RewriteRule ^mark-forum([0-9]*).html* forum.html&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* ftopic.html&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* ftopic.html&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html forum.html [L,NC]
RewriteRule ^forum-([0-9]*).* forum.html [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* forum.html&topicdays=&start= [L,NC]
RewriteRule ^ptopic([0-9]*).* ftopic.html&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* ftopic.html&view=next [L,NC]
  1. .htaccess (Should be in forum root)
  2. #
  3. #-----[ ADD ]------------------------------------------
  4. RewriteEngine On
  5. RewriteRule ^forums.* index.php [L,NC]
  6. RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) sutra.html&highlight= [L,NC]
  7. RewriteRule ^post-([0-9]*).* sutra.html [L,NC]
  8. RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* ftopic.html&postdays=&postorder=&vote=viewresult [L,NC]
  9. RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) ftopic.html&highlight= [L,NC]
  10. RewriteRule ^about([0-9]*).html&view=newest ftopic.html&view=newest [L,NC]
  11. RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* ftopic.html&postdays=&postorder=&start= [L,NC]
  12. RewriteRule ^about([0-9]*)-([0-9]*).* ftopic.html&start= [L,NC]
  13. RewriteRule ^about([0-9]*).* ftopic.html [L,NC]
  14. RewriteRule ^about([0-9]*).html ftopic.html&start=&postdays=&postorder=&highlight= [L,NC]
  15. RewriteRule ^mark-forum([0-9]*).html* forum.html&mark=topics [L,NC]
  16. RewriteRule ^updates-topic([0-9]*).html* ftopic.html&watch=topic [L,NC]
  17. RewriteRule ^stop-updates-topic([0-9]*).html* ftopic.html&unwatch=topic [L,NC]
  18. RewriteRule ^forum-([0-9]*).html forum.html [L,NC]
  19. RewriteRule ^forum-([0-9]*).* forum.html [L,NC]
  20. RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* forum.html&topicdays=&start= [L,NC]
  21. RewriteRule ^ptopic([0-9]*).* ftopic.html&view=previous [L,NC]
  22. RewriteRule ^ntopic([0-9]*).* ftopic.html&view=next [L,NC]


Código: [ Select ]
robots.txt

Disallow: forums/post-*.html$
Disallow: forums/updates-topic.html*$
Disallow: forums/stop-updates-topic.html*$
Disallow: forums/ptopic*.html$
Disallow: forums/ntopic*.html$
  1. robots.txt
  2. Disallow: forums/post-*.html$
  3. Disallow: forums/updates-topic.html*$
  4. Disallow: forums/stop-updates-topic.html*$
  5. Disallow: forums/ptopic*.html$
  6. Disallow: forums/ntopic*.html$


Código: [ Select ]
includes/functions.php

#
#-----[ FIND ]------------------------------------------


if (!empty($db))
{
   $db->sql_close();
}

#
#-----[ AFTER, ADD ]------------------------------------------
#

if ( !$userdata['session_logged_in'] )
{
if (stristr($url, 'http://')) {
 header('Location: ' . $url);
 exit;
}
}
  1. includes/functions.php
  2. #
  3. #-----[ FIND ]------------------------------------------
  4. if (!empty($db))
  5. {
  6.    $db->sql_close();
  7. }
  8. #
  9. #-----[ AFTER, ADD ]------------------------------------------
  10. #
  11. if ( !$userdata['session_logged_in'] )
  12. {
  13. if (stristr($url, 'http://')) {
  14.  header('Location: ' . $url);
  15.  exit;
  16. }
  17. }


Código: [ Select ]
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM 
  1. #
  2. #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
  3. #
  4. # EoM 

© http://www.able2know.com
  • Daniel
  • Student
  • Student
  • No Avatar
  • Registrado: Jun 18, 2004
  • Mensajes: 91
  • Status: Offline

Nota Noviembre 8th, 2004, 9:12 am

yer he usado para poder saber, en primer lugar, pero no permitiremos que nadie para ver la 2 ª páginas de los temas.....
  • djtheropy
  • Graduate
  • Graduate
  • No Avatar
  • Registrado: Nov 05, 2004
  • Mensajes: 111
  • Status: Offline

Nota Noviembre 8th, 2004, 7:58 pm

Que así el código completo sin cambios en su forma ha funcionado para mí así que debería funcionar para usted.

has instalado el mod que se deshace de ID de sesión?
  • Brandon123
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Nov 09, 2004
  • Mensajes: 10
  • Status: Offline

Nota Noviembre 9th, 2004, 1:02 am

Tengo el mismo problema que Daniel. Creo que he encontrado el problema. El artículo fue escrito como si los foros de residir en los directorios raíz. Mi foro reside en los "foros" directorios - por ejemplo, http://www.mydomain.com/forums .

¿Puede alguien decirme que tengo que modificar el mod para ajustarlo a mi directorio de foros?

Creo que va a solucionar el problema. Pero hay un montón de lugares para modificar el mod y sé que necesito saber qué tengo que cambiar específicamente.
  • madmonk
  • Mastermind
  • Mastermind
  • No Avatar
  • Registrado: May 04, 2004
  • Mensajes: 2115
  • Loc: australia
  • Status: Offline

Nota Noviembre 9th, 2004, 5:03 am

Sí. poner el htaccess en la carpeta de su foro
Creo que esa es lo que hice la última vez....
se hace meses :-(
sino que deben trabajar....
Tattoos Gallery
  • Daniel
  • Student
  • Student
  • No Avatar
  • Registrado: Jun 18, 2004
  • Mensajes: 91
  • Status: Offline

Nota Noviembre 9th, 2004, 9:15 am

así los malos, inténtelo de nuevo :(
  • Jess
  • Guru
  • Guru
  • Avatar de Usuario
  • Registrado: Sep 10, 2004
  • Mensajes: 1153
  • Loc: USA
  • Status: Offline

Nota Noviembre 9th, 2004, 9:22 am

¿Estás seguro de tu host tiene su motor de trabajo de reescritura de derecho en el servidor?

I ad thid problema de una vez - intentado todo. La final en el me puse en contacto con mi equipo y consideró que el fallo era su fin. Quizá merezca la pena comprobar?
  • Daniel
  • Student
  • Student
  • No Avatar
  • Registrado: Jun 18, 2004
  • Mensajes: 91
  • Status: Offline

Nota Noviembre 9th, 2004, 12:33 pm

¿Ha leído la cosa entera jess? Si lo que se considera de poco se la he dicho lo tengo trabajo aún no he podido ver la 2 ª páginas de los temas :(
  • Brandon123
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Nov 09, 2004
  • Mensajes: 10
  • Status: Offline

Nota Noviembre 9th, 2004, 12:56 pm

Jess,

¿Qué dice usted definitivamente tiene sentido. Por casualidad, hizo su servidor le dirá qué fue mal? Im va a escribir un billete problemas con mi servidor, pero quiero tratar de ser lo más específico posible.
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Noviembre 9th, 2004, 12:56 pm

Publicar Información

  • Total de mensajes en este tema: 40 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 22 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC