By glithic
I recently began to build a Link shortener and I had to use the .htaccess so that I can change the link so that something like website.com/23hG3 would go to say google instead of something like website.com/index.php?title=23hG3
After I tested this on my own local server and watching as it works I put it on my server here and I got this:
glith.co is currently unable to handle this request. HTTP ERROR 500
This is my .htaccess :
RewriteEngine On
RewriteRule ^([^/]+)/? index.php?title=$1 [L,QSA]
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!
Did you make sure to enable the rewrite module for apache? You can do this with the following commands:
sudo a2enmod rewrite
sudo service apache2 restart
If you continue to see errors, review the messages recorded in /var/log/apache2/error.log as they should provide some additional information about the error.
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.