Question

Mod Rewrite Apache2.2.22 Problems...

  • Posted 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.

Subscribe
Share

Submit an 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.

OH! I see what’s wrong, I did AllowOverride Alll on accident, I put one too many L’s. Fixed and working.

I know how to do that… but only my apache2.2.22 doesn’t work correctly… :/

Check out <a href=“https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts”>How To Set Up Apache Virtual Hosts on Ubuntu 12.04 LTS</a>

Sorry for the double post, my internet is playing up and it didn’t show. :/

default, and only that.

default, and only that.

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