Report this

What is the reason for this report?

Mod Rewrite Apache2.2.22 Problems...

Posted on October 22, 2013

So, I setup my droplet with the following commands: apt-get update; apt-get upgrade; apt-get install apache2; a2enmod rewrite; apt-get install php5 php5-mysql;

Droplet information: Ubuntu 12.04 x64 New York 2

.htaccess file used: RewriteEngine On RewriteRule ^([a-z0-9]+)$ /go.php?code=$1 [L]

mydomain.com/Wi2D8 doesn’t work, returns 404.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Did you enable your site? What’s in your <code>/etc/apache2/sites-enabled</code> directory?

default, and only that.

default, and only that.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.