Mod_rewrite Support

Hey guys, Im pretty new to servers/VPS's etc and i seem to have a problem enabling mod_rewrite for use from .htaccess. My apache/php installation is pretty "Out the box"

Google didn't really help for a search…

Nicholas-c

5 Replies

Which distribution do you use?

If you use Debian/Ubuntu, you can enable mod_rewrite by the following command:
> a2enmod rewrite
After that you will need to restart apache like this:
> /etc/init.d/apache2 restart

Hey, Yeah, im using ubuntu…

~~![](<URL url=)http://www.imgdash.com/uploads/3677402ca3.png" />

Ekk? :S~~

Apache didn't stop properly.

Try:
> /etc/init.d/apache2 stop

/etc/init.d/apache2 start

You need to be root, or use sudo, in order to start or stop such services.

Sorted. Thanks guys :) (Y)

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct