Enabling mod_rewrite on apache2

If you’re trying to enable mod_rewrite for apache2 on your ubuntu server (or any other distrib) and nothing works, this little writeup might save you a few hours of frustration !

To enable mod_rewrite on ubuntu server you should write the following command:

sudo a2enmod rewrite

Apparently, this isn’t enough to do the job, it actually enables the module and loads it, but it won’t show up in

sudo apache2ctl -l

after you’ve enabled mod_rewrite, it’s time for the fix to make it actually work !

head to /etc/apache2/sites-enabled/ and then edit the site you’re currently using mostly it’ll be the file: 000-default

When you open the file, you’ll notice it’ll probably look like this :

<VirtualHost *:80>
ServerAdmin admin@localhost

DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride none
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride none
Order allow,deny
allow from all
</Directory>

You need to replace the occurrence of AllowOverride none to AllowOverride all

now the file should look like this :

<VirtualHost *:80>
ServerAdmin admin@localhost

DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride all
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>

After editing your file, you will need to restart your apache2 server to see the changes !
in your terminal, type:

sudo service apache2 restart

Now fire up your browser and check your working mod_rewrite !, happy development.

7 comments

  1. henree   •  

    thanks a lot 🙂

  2. Cheryl   •  

    I’m amazed, I must say. Rarely do I come across a blog that’s both educative and amusing,
    and without a doubt, you have hit the nail on the head. The problem is something that too few people
    are speaking intelligently about. I am very happy that I stumbled across this during my search for something relating to this.

  3. Mitchel   •  

    Hi there friends, its enormous article on the topic of cultureand entirely
    defined, keep it up all the time.

  4. Steve   •  

    I think that is one of the most important info for me. And i’m happy studying your article.
    But should statement on some general things, The web site taste is wonderful, the articles is in reality
    excellent : D. Excellent activity, cheers

  5. adult stores near me   •  

    adult stores near me
    Bolton.How these new players will mesh with Mr. Trump’s
    throwback persona may determine whether the president is signaling a midcourse correction in foreign policy
    or merely retreating to phrases and positions that give him comfort.Mr.
    Tillerson and General McMaster curbed some of Mr. But I’ve always known he has
    a harder road to walk. Even as a toddler, I began to see the differences in how my son was treated.
    Where his sisters were given grace for mistakes,
    he was handled more harshly. Well, I saw this movie, “New Moon,” in the Twilight series, and I was very inspired
    by that story so I wrote a song about it called “Moonlight.”
    And I thought, I can’t just put out this one song so I guess I’m going to
    have to put out a record. I got off the Fleetwood Mac tour in 2009 and hit the
    ground running. I called Dave Stewart [formerly of the Eurythmics] probably two weeks after I got
    home and said I’m ready to make a record now..

    vibrators As hard as it might be, think of calming down as the
    best thing you can do for your health right now. It is not meant
    to and cannot substitute for advice or care provided by an in person medical professional.
    The information contained herein is not meant to be used to
    diagnose or treat a health problem or disease, or for prescribing any medication. A few minutes
    after responding to the call, with the apparent guidance from the sheriff’s helicopter, the city police officers
    spotted Mr. Clark, who they said ran from them.

    They followed him into the backyard and ordered him to show his hands, police video shows.
    vibrators

    g spot vibrator “Well, yeah, that too. But I’m thinking you need to branch out with your tastes. Stop going after these tie wearing, ho hum, cry to my mama ’cause I have no life geeks. This lovely beauty features high quality flax leather available in red or black. The black leather has a matte finish with a soft unfinished inside. On the inside next to the non locking buckle you’ll find a small black tag that features the company name. I follow commands I given to the best of my ability. So long as I done them as well as I possibly can, he shows appreciation. If I slacked on something then I punished.. g spot vibrator

    male sex toys View our online Press Pack. For other inquiries, Contact Us. To see all content on The Sun, please use the Site Map. “The Barbara Jordan Health Policy Scholars Program is an exceptional opportunity for
    talented students to gain firsthand experience on Capitol Hill, learn about critical policy
    issues and undertake in depth policy analysis projects,” Foundation President and CEO Drew E. Altman said. College or university in the fall of 2007. And so Bod proceeds through childhood. He eats the food Silas brings him, learns from ghostly teachers and enjoys all sorts of adventures denied to boys in the living world. Always, though, there’s a shadowy question hovering: Who was Jack, and why did he kill Bod’s parents? The answers must wait until the next installation, due out in September. male sex toys

    dog dildo So, I did. It helped some, but not much. I understand that no matter how much I do, not everyone is going to listen to me. She is Alex’s room mate and they talk about it often. I told her if she needed anything to call me and I would try my best to help. But on my way home, I thought. As stated above, this cradles onto a finger or thumb and can be used all over the body but is specifically used most to play with the clitoris. What is nice about the design, in my opinion, are the little ridges it has because with simple little strokes of it to go with the vibrations, it can tickle my clit to where I am wriggling for something more. As such, it is a great little opener to the bigger show.. dog dildo

    Adult Toys Doggie alignment in this position requires me to spread my knees a bit to lower myself to align with the strapon. Since we fairly close in height that works OK for us. She can reach around to stroke me so I take care of that. Even after approving those days, he documented every day that I took off, called in an hour late, or asked to leave an hour or two early, and when I showed up at work on July 1, he was waiting in my office and told me to pack my things, and escorted me out the door. I was told I was being terminated for failure to come to work. I knew this was bogus but I didn’t do anything because nothing happened before.. Adult Toys

    strap on The set includes a bra, a waspie suspender belt and a G string. Made of fine mesh and delicate floral lace, this outfit is absolutely exquisite. The stretchy design means it will adapt to fit your figure, while the slightly transparent fabric will make your most private parts tantalisingly visible. Serial reposters may be filtered. False claims of ownership will result in a ban. I’m worried people are thinking I’m trying to do this for the upvotes. “They
    always sat so closely together. They defended their nest
    from the other vultures,” the zoo’s curator, Dirk Wewers said of the pair, named Guido and Detlef. But no matter how they enjoyed each other’s company, Guido has been sent off for breeding efforts to a Czech zoo while Detlef is left pining for his lost love. strap on

    Realistic Dildo He turnedhis head, tendons twanging a little riff of agony, and saw several ofthe wardens watching him through the bars.done, Mr. Spangler! said one of them.not us, sir. Lord Vetinari orders. We spoke less often. Then we grew apart. I see her every day walking outside in the main hallway at our school. This is a fairly basic no frills massager/wand style vibrator. It’s simple to use, features strong vibrations for clitoral stimulation, and has adjustable vibration intensity. It’s great for people wanting to experiment with a wand style vibe before committing to a larger and more expensive one like the Fairy or Hitachi. Realistic Dildo

    gay sex toys And then I remembered that largely pronounced heads like that catch on my pubic bone and are generally uncomfortable and distracting if I’m thrusting on my own on my back. But I had a stroke of genius (for myself, because it never occurred to me to try it this way with other toys that caused me similar discomfort) and decided to pretend that it was attached to a body and placed it on the floor like I was going to be on top. That made it a lot more enjoyable for me because I could still get the benefits of the texture without the awkwardly uncomfortable popping sensation of the head catching on my pubic bone from the inside.. gay sex toys

    adult store Not only do plenty of people feel intensely sexual, turned on and fulfilled sexually when engaging a partner’s genitals with their mouths, it’s also not like only their partner is having a physical experience.Our mouths and lips have SO MANY nerve endings, just like genitals. When we’re the ones stimulating someone’s genitals with our mouths, our noses are also directly involved, so even more of our senses are engaged than they are for a person for whom only genitals are involved, but not their mouth or nose (not so directly, anyway). Genitals can’t taste or smell things. adult store

    fleshlight Please note, however, that your refusal to accept payment obligations may result in your inability to access or use certain premium or additional features of Stack Overflow.The Stack Overflow API shall be used solely pursuant to the terms of the API Terms of Use. Other than as expressly set forth in these Public Network Terms, you may not copy, modify, publish, transmit, upload, participate in the transfer or sale of, reproduce (except as provided in this Agreement), create derivative works based on, distribute, perform, display, or in any way exploit any of the Network Content, software, materials, or Services in whole or in part.From time to time, Stack Overflow may make available compilations of all the on the public Network (the “Creative
    Commons Data Dump”). The Creative Commons Data Dump is licensed under the Creative Commons CC BY SA license fleshlight.

Leave a Reply to Steve Cancel reply

Your email address will not be published. Required fields are marked *