Habilitar MOD_REWRITE en entorno LAMP Ubuntu

Cuando instalamos Ubuntu y queremos desarrollar aplicaciones webs en entorno LAMP (Linux Apache Mysql PHP). Puede que tengamos algunos conflictos si lo que queremos es usar Frameworks para PHP5 como Kumbia o CakePHP .

Para solucionar este conflicto debemos tener instalado y habilitado el Mod_rewrite de Apache.

Para que sirve el Mod_rewrite?

El Mod_rewrite es un módulo de apache que permite reescribir las urls que han utilizado nuestros usuarios a otras más simples y faciles de recordar para ellos, mejor conocidas como URL amigables, por ejemplo:

sin mode_rewrite, la URL seria: www.mipagina.com/actualidad.php?id=43234

con mode_rewrite podriamos hacer que sea: www.mipagina.com/2008/evento-linux

Permitiendo de esta forma un mejor posicionamiento en buscadores, porque a los robots de busqueda les es mas entendible este tipo de URLs.

Para usuarios que venian acostumbrados a configurar los parametros de Apache en el archivo httpd.conf , se daran cuenta de que este archivo en Ubuntu esta vacio (/etc/apache2/httpd.conf).

Entonces lo que hacemos es lo siguiente:

Habilitamos el mode_rewrite desde comandos

$sudo a2enmod rewrite

y luego

$sudo gedit /etc/apache2/sites-enabled/000-default

y reemplazamos en todas las veces en donde aparezca “Allow override none” por “Allow override All” y guardamos.

reiniciamos o relodeamos el Apache

$sudo /etc/init.d/Apache2 reload

y listo.

Con esto ya estaria funcionando nuestro Apache con Mod_rewrite habilitado en entorno LAMP para Ubuntu

espero que les sea de utilidad .

Dante.

35 Responses to “Habilitar MOD_REWRITE en entorno LAMP Ubuntu”

  1. immeliExperce Says:

    The response to national disaster is awesome but it’s a damn shame that so many people take advantage of the negative situations.

    I mean everytime there is an earthquake, a flood, an oil spill - there’s always a group of heartless people who rip off tax payers.

    This is in response to reading that 4 of Oprah Winfreys “angels” got busted ripping off the system. Shame on them!
    http://www.cbsnews.com/blogs/2009/08/19/crimesider/entry5251471.shtml

  2. aripibleMib Says:

    The response level to local and national disasters is awesome but it’s a damn shame that so many citizens take advantage of the sad situations.

    I mean everytime there is an earthquake, a flood, an oil spill - there’s always a group of heartless people who rip off tax payers.

    This is in response to reading that 4 of Oprah Winfreys “angels” got busted ripping off the system. Shame on them!
    http://www.cbsnews.com/blogs/2009/08/19/crimesider/entry5251471.shtml

  3. cafe world domination Says:

    Hi, I can?t understand how to add your site in my rss reader. Can you Help me, please :)

  4. nDFgqFJq Says:

    BeTVrRK

  5. Japan Sex Sites Says:

    hmm. luv this thoughts!

  6. Drendagress Says:

    The action taken to national disaster is awesome but it’s a damn shame that so many people take advantage of the negative situations.

    I mean everytime there is an earthquake, a flood, an oil spill - there’s always a group of heartless people who rip off tax payers.

    This is in response to reading that 4 of Oprah Winfreys “angels” got busted ripping off the system. Shame on them!
    http://www.cbsnews.com/blogs/2009/08/19/crimesider/entry5251471.shtml

  7. Seamus Says:

    You made some good points on this topic. watch the hurt locker online

  8. viagra Says:

    FCLYCiQ sgFdtEda

  9. hortSteat Says:

    Todd Cowle Municipal Bond Credit Report synthesizes, analyzes and presents aggregate credit information and trends in the municipal bond market. The report includes municipal bond rating information from the three major rating agencies – Moody’s Investor Services, Standard and Poor’s and Fitch Ratings.

  10. geasuactare Says:

    Greetings…

    Definitions for global warming are most often disregarded as too scientific - however, earthquakes and mass death should not be disregarded as another statistic. We’re talking about people, just like you and me.

    Please offer financial or volunteer assistance to Haiti and Chile
    http://www.google.com/relief/haitiearthquake/

  11. geasuactare Says:

    Good Morning…

    Words like global warming are generally too scientific to participate in - however, an earthquake shaking an entire country into disaster should not be another disregarded statistic. Hundreds of thousads are dead and homeless

    Please help the victims to Haiti & Chile
    http://www.google.com/relief/haitiearthquake/

  12. Homoheloanego Says:

    Todd Cowle Municipal Bond Credit Report synthesizes, analyzes and presents aggregate credit information and trends in the municipal bond market. The report includes municipal bond rating information from the three major rating agencies – Moody’s Investor Services, Standard and Poor’s and Fitch Ratings.

  13. Cheap Ambien Says:

    XCqvWt Cheap Ambien

  14. Cialis Says:

    oIQydShL Cialis

  15. bHJRgT Says:

    bSrisd

  16. mentaniunny Says:

    Hi Tourist
    Love romantic quiet weekends..
    Just missed the carnival in Rio - ha ha - ,!

    Need some advice.

    Cheers.

  17. Cheapest Cialis Says:

    oGoDgF Cheapest Cialis

  18. cinaPreormmem Says:

    WTF!!

    6 Hours Ago I received a phone message from (972) 2840600 & 9722840600 and was convinced the caller was a scam.

    Guess it was a bad case of the “Mondays” - cause I went nuts - and called the number and yell.

    You will never believe this… Gulf Coast Western -an oil corporation- called me back was returning a call from last months interview - telling me I got the job

    Wow, I really feel dumb. But I think I’ve lost my chance…!!

  19. Cruising Guys Says:

    Candy Skye

  20. Gay Lovin Says:

    Baileys Room

  21. Cum Academy Says:

    123 Kinky Kate

  22. Tania Spice Says:

    Mature Sluts Gone Mad

  23. Wet Wendy Says:

    DILF Lovers

  24. Amateur Straight Guys Says:

    Funny Audition

  25. Naughty Daisy Says:

    Free Creampie

  26. Emily Dream Says:

    Tranny Porn Pass

  27. Eva Angelina Says:

    Horny Boy

  28. Sweet Denisa Says:

    Interracial Intercourse

  29. Mason Wyler Says:

    Get Naughty Girls

  30. Wevedi Says:

    Nylon Bitch Yvette

  31. Harmony Ann Says:

    Handjob Play

  32. 88 Square Says:

    Hentai Humpers

  33. Emily Saint Says:

    Quien se quiere fajar a mi mujer mientras yo leo el periodico

  34. Sweet Zuzanna Says:

    Gay Adult Vids

  35. Lela Star Says:

    Sweet Irena

habitamos
PageRank for this page