Foros del Web » Administración de Sistemas » Software para Servers »

Wamp y Apache Imposible Activar rewrite_modulo

Estas en el tema de Wamp y Apache Imposible Activar rewrite_modulo en el foro de Software para Servers en Foros del Web. Hola bueno escribo por que no me queda otra no he podido lograr que funcione el rewrite_mod de apache que tengo instalado desde wamp server. ...
  #1 (permalink)  
Antiguo 20/11/2013, 18:48
Avatar de luzzifer  
Fecha de Ingreso: julio-2009
Ubicación: Paraná - Argentina
Mensajes: 169
Antigüedad: 14 años, 9 meses
Puntos: 3
Exclamación Wamp y Apache Imposible Activar rewrite_modulo

Hola bueno escribo por que no me queda otra no he podido lograr que funcione el rewrite_mod de apache que tengo instalado desde wamp server.

apache 2.2.22
wamp 2.2

activo el rewrite_mod reinicio entro al httpf.conf y compruebo que realmente esta activado pero en los httacces no redireccionan ni sin www a www ni index.php a sin index.php

http://www.forosdelweb.com/f58/probl...write-1053414/
http://www.forosdelweb.com/f58/apach...aults-1034477/
http://www.forosdelweb.com/f58/cambi...ccess-1026854/
http://www.forosdelweb.com/f58/aplic...do-no-1055683/
http://www.forosdelweb.com/f58/activ...ewrite-457190/


E echo todo lo que muestran los links pero nada sigo con problemas. Alguna idea de que puede estar fallando? quizas la sintaxis del .httacces?
  #2 (permalink)  
Antiguo 20/11/2013, 19:21
Avatar de luzzifer  
Fecha de Ingreso: julio-2009
Ubicación: Paraná - Argentina
Mensajes: 169
Antigüedad: 14 años, 9 meses
Puntos: 3
Respuesta: Wamp y Apache Imposible Activar rewrite_modulo

Aqui adentro esta el .htacces que no funciona y el sitio completo en html y php. Es muy simple y no pesa nada y lo mejor de todo no funciona por que el modo rewrite (supuestamente habilitado)
http://xgamers.org/downloads/L2J_pla...ers.org_v1.zip

asi es como se deberia ver la pagina:
http://l2java.com/statistic/5000x/Show/page-0,stat-pvp
  #3 (permalink)  
Antiguo 21/11/2013, 09:25
Colaborador
 
Fecha de Ingreso: septiembre-2013
Ubicación: España
Mensajes: 3.648
Antigüedad: 10 años, 7 meses
Puntos: 578
Respuesta: Wamp y Apache Imposible Activar rewrite_modulo

Si le has quitado la almohadilla a esa línea del http.conf y has reemplazado todos los "AllowOverride None" por "AllowOverride All" solo queda que tengas el código mal. Ponlo por favor.
  #4 (permalink)  
Antiguo 21/11/2013, 10:04
Avatar de luzzifer  
Fecha de Ingreso: julio-2009
Ubicación: Paraná - Argentina
Mensajes: 169
Antigüedad: 14 años, 9 meses
Puntos: 3
Exclamación Respuesta: Wamp y Apache Imposible Activar rewrite_modulo

e reemplazado todos los "AllowOverride None" por "AllowOverride All" he reiniciado el server, y limpiado el cache y nada sigue tirando error.
La página no está redirigiendo adecuadamente

estos son los .htacces que me dan error
Este es generado por joomla
Código HTML:
Ver original
  1. ##
  2. # @package      Joomla
  3. # @copyright    Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
  4. # @license      GNU General Public License version 2 or later; see LICENSE.txt
  5. ##
  6.  
  7. ##
  8. # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
  9. #
  10. # The line just below this section: 'Options +FollowSymLinks' may cause problems
  11. # with some server configurations.  It is required for use of mod_rewrite, but may already
  12. # be set by your server administrator in a way that dissallows changing it in
  13. # your .htaccess file.  If using it causes your server to error out, comment it out (add # to
  14. # beginning of line), reload your site in your browser and test your sef url's.  If they work,
  15. # it has been set by your server administrator and you do not need it set here.
  16. ##
  17.  
  18. ## Can be commented out if causes errors, see notes above.
  19. Options +FollowSymLinks
  20.  
  21. ## Mod_rewrite in use.
  22.  
  23. RewriteEngine On
  24. RewriteCond %{HTTP_HOST} ^l2luna.com.ar
  25. RewriteRule (.*) http://www.l2luna.com.ar/$1 [R=301,L]
  26.  
  27. <Directory "C:/wamp/www/">
  28. Options Indexes FollowSymLinks
  29. AllowOverride All
  30. Order allow,deny
  31. Allow from all
  32. RewriteEngine On
  33. Options +FollowSymlinks #Inecesario ya lo declarastes antes
  34. RewriteBase /
  35. RewriteCond %{REQUEST_URI} ^/index\.html*$ [OR]
  36. RewriteCond %{REQUEST_URI} ^/indice\.html*$ [OR]
  37. RewriteCond %{REQUEST_URI} ^/metro\.html*$ [OR]
  38. RewriteCond %{REQUEST_URI} ^/menu\.html*$ [OR]
  39. RewriteCond %{REQUEST_URI} ^/catalogo/(.*)$ [OR]
  40. RewriteCond %{REQUEST_URI} ^/novedades/(.*)$ [OR]
  41. RewriteCond %{REQUEST_URI} ^/lecturas/(.*)$ [OR]
  42. RewriteCond %{REQUEST_URI} ^/principal\.html*$
  43. RewriteRule ^(.+)\.html*$ index.php [L]
  44. </Directory>
  45.  
  46. <IfModule mod_rewrite.c>
  47. Options +FollowSymLinks
  48. RewriteEngine On
  49. RewriteBase /
  50.  
  51. # Si el archivo no es un directorio
  52. RewriteCond %{REQUEST_FILENAME} !-d
  53.  
  54. # "Redirigir" normal cualquier numero,letra y barra (-)
  55. # y no hacer nada mas.
  56. RewriteRule ^([A-Za-z0-9-]+)/?$ $1.php [L]
  57.  
  58. # Si la consulta tiene extension .php
  59. RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.php\ HTTP
  60.  
  61. # Y no es un directorio
  62. RewriteCond %{REQUEST_URI} !-d
  63.  
  64. # Rediregimos a la misma consulta sin el .php
  65. RewriteRule ^(.+)\.php$ $1 [L,R=302]
  66.  
  67. </IfModule>
  68.  
  69. ## Begin - Rewrite rules to block out some common exploits.
  70. # If you experience problems on your site block out the operations listed below
  71. # This attempts to block the most common type of exploit `attempts` to Joomla!
  72. #
  73. # Block out any script trying to base64_encode data within the URL.
  74. RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
  75. # Block out any script that includes a <script> tag in URL.
  76. RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
  77. # Block out any script trying to set a PHP GLOBALS variable via URL.
  78. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
  79. # Block out any script trying to modify a _REQUEST variable via URL.
  80. RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
  81. # Return 403 Forbidden header and show the content of the root homepage
  82. RewriteRule .* index.php [F]
  83. #
  84. ## End - Rewrite rules to block out some common exploits.
  85.  
  86. ## Begin - Custom redirects
  87. #
  88. # If you need to redirect some pages, or set a canonical non-www to
  89. # www redirect (or vice versa), place that code here. Ensure those
  90. # redirects use the correct RewriteRule syntax and the [R=301,L] flags.
  91. #
  92. ## End - Custom redirects
  93.  
  94. ##
  95. # Uncomment following line if your webserver's URL
  96. # is not directly related to physical file paths.
  97. # Update Your Joomla! Directory (just / for root).
  98. ##
  99.  
  100. # RewriteBase /
  101.  
  102. ## Begin - Joomla! core SEF Section.
  103. #
  104. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  105. #
  106. # If the requested path and file is not /index.php and the request
  107. # has not already been internally rewritten to the index.php script
  108. RewriteCond %{REQUEST_URI} !^/index\.php
  109. # and the request is for something within the component folder,
  110. # or for the site root, or for an extensionless URL, or the
  111. # requested URL ends with one of the listed extensions
  112. RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
  113. # and the requested path and file doesn't directly match a physical file
  114. RewriteCond %{REQUEST_FILENAME} !-f
  115. # and the requested path and file doesn't directly match a physical folder
  116. RewriteCond %{REQUEST_FILENAME} !-d
  117. # internally rewrite the request to the index.php script
  118. RewriteRule .* index.php [L]
  119. #
  120. ## End - Joomla! core SEF Section.
este es de una pagina en php y html para un server de lineage.
Código HTML:
Ver original
  1. <IfModule mod_rewrite.c>
  2.     RewriteEngine On
  3.     RewriteCond %{REQUEST_FILENAME} !-f
  4.     RewriteCond %{REQUEST_FILENAME} !-d
  5.    
  6.     RewriteRule ^([a-zA-Z0-9-/,._;]+) index.php?index=$1 [L]
  7. </IfModule>
  #5 (permalink)  
Antiguo 21/11/2013, 10:09
Avatar de luzzifer  
Fecha de Ingreso: julio-2009
Ubicación: Paraná - Argentina
Mensajes: 169
Antigüedad: 14 años, 9 meses
Puntos: 3
Respuesta: Wamp y Apache Imposible Activar rewrite_modulo

este es el httpd.conf le quite todos los # asi es mas corto el archivo solo para postear
Código HTML:
Ver original
  1. #
  2.  
  3. ServerRoot "E:/SERVER/wamp/bin/apache/apache2.4.4"
  4.  
  5.  
  6.  
  7. #Listen 12.34.56.78:80
  8. Listen 80
  9.  
  10. LoadModule access_compat_module modules/mod_access_compat.so
  11. LoadModule actions_module modules/mod_actions.so
  12. LoadModule alias_module modules/mod_alias.so
  13. LoadModule allowmethods_module modules/mod_allowmethods.so
  14. LoadModule asis_module modules/mod_asis.so
  15. LoadModule auth_basic_module modules/mod_auth_basic.so
  16.  
  17. LoadModule authn_core_module modules/mod_authn_core.so
  18.  
  19.  
  20. LoadModule authn_file_module modules/mod_authn_file.so
  21.  
  22.  
  23. LoadModule authz_core_module modules/mod_authz_core.so
  24.  
  25.  
  26. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  27. LoadModule authz_host_module modules/mod_authz_host.so
  28.  
  29. LoadModule authz_user_module modules/mod_authz_user.so
  30. LoadModule autoindex_module modules/mod_autoindex.so
  31.  
  32. LoadModule cgi_module modules/mod_cgi.so
  33.  
  34. LoadModule dir_module modules/mod_dir.so
  35.  
  36. LoadModule env_module modules/mod_env.so
  37.  
  38. LoadModule include_module modules/mod_include.so
  39.  
  40. LoadModule isapi_module modules/mod_isapi.so
  41.  
  42. LoadModule log_config_module modules/mod_log_config.so
  43.  
  44. LoadModule mime_module modules/mod_mime.so
  45.  
  46. LoadModule negotiation_module modules/mod_negotiation.so
  47.  
  48. LoadModule rewrite_module modules/mod_rewrite.so
  49.  
  50.  
  51. LoadModule php5_module "E:/SERVER/wamp/bin/php/php5.4.16/php5apache2_4.dll"
  52.  
  53. <IfModule unixd_module>
  54.  
  55. User daemon
  56. Group daemon
  57.  
  58. </IfModule>
  59.  
  60.  
  61.  
  62.  
  63.  
  64. ServerAdmin [email protected]
  65.  
  66.  
  67. ServerName localhost
  68.  
  69.  
  70. <Directory />
  71.     AllowOverride All
  72.     Require all granted
  73. </Directory>
  74.  
  75.  
  76. DocumentRoot "E:/SERVER/wamp/www"
  77. <Directory "E:/SERVER/wamp/www">
  78.  
  79.     Options Indexes FollowSymLinks
  80.  
  81.  
  82.      Order Deny,Allow
  83.      Allow from all
  84.      Allow from 127.0.0.1
  85.      Allow from ::1
  86.      Allow from localhost
  87. </Directory>
  88.  
  89. <IfModule dir_module>
  90.     DirectoryIndex index.php index.php3 index.html index.htm
  91. </IfModule>
  92.  
  93.  
  94. <Files ".ht*">
  95.     Require all denied
  96. </Files>
  97.  
  98.  
  99. LogLevel warn
  100.  
  101. <IfModule log_config_module>
  102.  
  103.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  104.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
  105.  
  106.     <IfModule logio_module>
  107.       # You need to enable mod_logio.c to use %I and %O
  108.       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  109.     </IfModule>
  110.     CustomLog "logs/access.log" common
  111.     CustomLog "E:/SERVER/wamp/logs/access.log" common
  112. </IfModule>
  113.  
  114. <IfModule alias_module>
  115.  
  116.     ScriptAlias /cgi-bin/ "E:/SERVER/wamp/cgi-bin/"
  117.  
  118. </IfModule>
  119.  
  120. <IfModule cgid_module>
  121.  
  122. </IfModule>
  123.  
  124. #
  125. # "E:/SERVER/wamp/cgi-bin" should be changed to whatever your ScriptAliased
  126. # CGI directory exists, if you have that configured.
  127. #
  128. <Directory "E:/SERVER/wamp/cgi-bin">
  129.     AllowOverride All
  130.     Options None
  131.     Require all granted
  132. </Directory>
  133.  
  134. <IfModule mime_module>
  135.     #
  136.     # TypesConfig points to the file containing the list of mappings from
  137.     # filename extension to MIME-type.
  138.     #
  139.     TypesConfig conf/mime.types
  140. </IfModule>
  141. Include conf/extra/httpd-mpm.conf
  142. # Multi-language error messages
  143. #Include conf/extra/httpd-multilang-errordoc.conf
  144. # Fancy directory listings
  145. #Include conf/extra/httpd-autoindex.conf
  146. # Language settings
  147. #Include conf/extra/httpd-languages.conf
  148. # User home directories
  149. #Include conf/extra/httpd-userdir.conf
  150. # Real-time info on requests and configuration
  151. #Include conf/extra/httpd-info.conf
  152. # Virtual hosts
  153. #Include conf/extra/httpd-vhosts.conf
  154. # Local access to the Apache HTTP Server Manual
  155. #Include conf/extra/httpd-manual.conf
  156. # Distributed authoring and versioning (WebDAV)
  157. #Include conf/extra/httpd-dav.conf
  158. # Various default settings
  159. #Include conf/extra/httpd-default.conf
  160. # Configure mod_proxy_html to understand HTML4/XHTML1
  161. <IfModule proxy_html_module>
  162. Include conf/extra/proxy-html.conf
  163. </IfModule>
  164.  
  165. <IfModule ssl_module>
  166. SSLRandomSeed startup builtin
  167. SSLRandomSeed connect builtin
  168. </IfModule>
  169.  
  170.  
  171.  
  172. IncludeOptional "E:/SERVER/wamp/vhosts/*"
  173. Include "E:/SERVER/wamp/alias/*"

Desde ya muchas gracias por tu ayuda

Etiquetas: apache, imposible, php, red, server, servidores-web, wamp
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:11.