.htacess to nginx directives

Discussion in 'ISPConfig 3 Priority Support' started by S0ft, May 29, 2016.

  1. S0ft

    S0ft Member HowtoForge Supporter

    What would it be like in nginx directives?
    Code:
    RewriteEngine on
    ## Manejo de errores de Apache. Cuando se produzca uno de estos errores, redirigimos a una pagina especial desarrollada por nosotros.
    ErrorDocument 404 /index.php
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    Rewriterule ^busqueda/$ pages/buscar.php?buscador=$1 [QSA,L]
    Rewriterule ^genero/([A-Za-z0-9_-]+).html$ pages/tag.php?tag=$1 [QSA,L]
    Rewriterule ^letra/([A-Za-z0-9_-]+).html$ pages/letra.php?letra=$1 [QSA,L]
    Rewriterule ^anime/([A-Za-z0-9_-]+).html$ pages/anime.php?seo=$1 [QSA,L]
    Rewriterule ^ova/([A-Za-z0-9_-]+).html$ pages/anime.php?seo=$1 [QSA,L]
    Rewriterule ^pelicula/([A-Za-z0-9_-]+).html$ pages/anime.php?seo=$1 [QSA,L]
    Rewriterule ^ver/([A-Za-z0-9_-]+).html$ pages/capitulo.php?url=$1 [QSA,L]
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can e.g. search at google for an apache to nginx rule converter if you don't want to convert them manually.
     
  3. inside83

    inside83 Member HowtoForge Supporter

Share This Page