Mod_rewrite ayudar?

  • Jetlag
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Oct 03, 2004
  • Mensajes: 12
  • Loc: Vancouver, Canada
  • Status: Offline

Nota Noviembre 12th, 2004, 10:15 am

Yo estaba mirando el código. Htacces en la primera página...
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]

¿Cuál es el uso Dont publicado aquí...cuando publique el código que volverá a escribir el php a html
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Noviembre 12th, 2004, 10:15 am

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

Nota Noviembre 12th, 2004, 2:38 pm

¿malo. html?
  • Jetlag
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Oct 03, 2004
  • Mensajes: 12
  • Loc: Vancouver, Canada
  • Status: Offline

Nota Noviembre 12th, 2004, 7:43 pm

Quote:
¿malo. html?

Si nos fijamos en able2know y cuál es el código que muestra en este tema...son diferentes.
ejemplo...dos últimas líneas de código, pero able2know i utilizada "dot" php porque este foro de reescritura.

[php] RewriteRule ^ ptopic ([0-9 ]*).* viewtopicdotphp? t = $ 1 & ver = anterior [L, NC]
RewriteRule ^ ntopic ([0-9 ]*).* viewtopicdotphp? t = $ 1 & ver = siguiente [L, NC]
[/ php]

pero en este tema ozzu que han...
[php] RewriteRule ^ ptopic ([0-9 ]*).* ftopic.html $ 1 & ver = anterior [L, NC]
RewriteRule ^ ntopic ([0-9 ]*).* ftopic.html $ 1 & ver = siguiente [L, NC] [/ php]
  • Daniel
  • Student
  • Student
  • No Avatar
  • Registrado: Jun 18, 2004
  • Mensajes: 91
  • Status: Offline

Nota Noviembre 13th, 2004, 5:35 am

hmm any1 ¿quieres hacer esto por mí a cambio de alojamiento o algunos adversting?
  • djtheropy
  • Graduate
  • Graduate
  • No Avatar
  • Registrado: Nov 05, 2004
  • Mensajes: 111
  • Status: Offline

Nota Noviembre 13th, 2004, 6:10 pm

Que así el código i uso en mi foro y funciona bien y no ha dado ningún problema para mí y sobre rewritting a html thats todo el goddam punto de la misma.

¿Ha utilizado incluso mod_rewrite en un foro phpBB before?
  • Jetlag
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Oct 03, 2004
  • Mensajes: 12
  • Loc: Vancouver, Canada
  • Status: Offline

Nota Noviembre 13th, 2004, 6:54 pm

Quote:
Que así el código i uso en mi foro y funciona bien y no ha dado ningún problema para mí y sobre rewritting a html thats todo el goddam punto de la misma.

He instalado también...pero lo que im Tring decir es ¿Nuevo aquí está mal. No veo el código correcto (able2know) publicado en este tema. Quizás IE 6 reescribe las partes del código html a este foro porque los usos de reescritura. Veo "RewriteRule ^ ntopic ([0-9 ]*).* ftopic. html $ 1 & ver = siguiente [L, NC] "cuando debería ser" RewriteRule ^ ntopic ([0-9 ]*).* viewtopicdotphp? t = $ 1 & ver = siguiente [L, NC] "(tuve que usar" dot "Por lo que no reescribir)
  • Daniel
  • Student
  • Student
  • No Avatar
  • Registrado: Jun 18, 2004
  • Mensajes: 91
  • Status: Offline

Nota Noviembre 14th, 2004, 4:14 am

no me djtheropy no lo han hecho. Acabo de estar tratando de hacer con algunos foros de prueba aún en vano, la mayor parte del tiempo lo hago, funciona pero al hacer clic en los enlaces a / forum1.html va a un 404.... Por lo tanto, ¿podría hacerlo por mí?
  • Daniel
  • Student
  • Student
  • No Avatar
  • Registrado: Jun 18, 2004
  • Mensajes: 91
  • Status: Offline

Nota Noviembre 16th, 2004, 9:00 am

any1 para que pueda hacer esto por mí a cambio de algo?
  • madmonk
  • Mastermind
  • Mastermind
  • No Avatar
  • Registrado: May 04, 2004
  • Mensajes: 2115
  • Loc: australia
  • Status: Offline

Nota Noviembre 16th, 2004, 9:21 pm

me hi pm año añadir de correo electrónico y voy a enviar ua copia de mi htccess. prolly puede averiguar el resto. :-)
Tattoos Gallery
  • Daniel
  • Student
  • Student
  • No Avatar
  • Registrado: Jun 18, 2004
  • Mensajes: 91
  • Status: Offline

Nota Noviembre 17th, 2004, 9:45 am

Bien puede some1 atually hacer todo lo que a mí realmente nuevo a este lol

Publicar Información

  • Total de mensajes en este tema: 40 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 25 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