Pregunta

<IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)$ index.php?q=$1 [L,QSA

Buscando comentarios

Objetivo: Estoy tratando de habilitar "URL limpias" en un sitio DRUPAL 7 (de modo que example.com/?q=user se resuelve para exhibir.com/user).

Acabo de pasar demasiado tiempo a través de Docs y comentarios oficiales de Drupal, sin éxito, ¡así que cualquier sugerencia es muy apreciada!

He comprobado la casilla "Habilite las URL limpias" en DRUPAL (/ admin / config / busca / limpie-urls) y obtuve todo lo que se guardó las opciones de configuración.Así que ahora puedo ir a Ejemplo.com/User y, de hecho, muestra el mismo contenido que Ejemplo.com/?q=USER.Sin embargo, lo que quiero, es, para que Ejemplo.com/?q=USER se reescribe en el URI como example.com/user.

El código .htaccess relevante se muestra arriba, y mi APACHE CONF parece estar configurado correctamente.

¿Fue útil?

Solución

Clean urls do indeed work but I kept getting errors until I found this This saved my sanity:

  • disable Overlay module
  • go to Clean URLS
  • change URL from: /?q=admin/config/search/clean-urls
  • to: /admin/config/search/clean-urls
  • Then the Check box should appear

Otros consejos

I was searching for this issue, the solution that work for me was that:

  1. Left click on the wamp server icon and go to the apache.
  2. Here sub menu will be opened, go to the apache modules and enable the rewrite_module.
  3. now restart wamp server and then check your site.
  4. Enable clean url will now be active.

there should be a closing bracket on your last line "]". Perhaps this is the source of your frustration?

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top