Hi, I’m having trouble with .htaccess /rewriting URLs.
I followed the tutorial here to install phpmyadmin and along with it installed htaccess, seems to be working for phpmyadmin section: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-14-04
Then I used this guide to install multiple domains : https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts
I don’t have the domains actually setup yet but I edited my host file so I could see the domain that way. I tried putting up .htaccess files like I had in the phpmyadmin files but they don’t seem to be working.
Example :
order deny,allow deny from all allow from 111.111.111 RewriteEngine on
Tried others rewrites and they didn’t seem like they worked. Does not having it setup on an actual domain affect the rewrites?
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!
Look at your vhost config for AllowOverride None, and change it to AllowOverride All
restart apache2/httpd, and you should be good to go.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.