Is there a simple way to remove the .html from a URL namespace? For example, if I have www.mywebsite.com/special.html how can I make this www.mywebsite.com/special
Again, I’m using Apache on an Amazon EC2 instance. Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Put this in your
.htaccessfile:Make sure that
mod_rewriteis installed andAllowOverrideincludesFileInfo.Edit on how to get
mod_rewriteworking:Usually,
mod_rewritealready comes with apache, but sometimes needs to be enabled by the commandThe
AllowOverridedirective sets permissions for.htaccessfiles. Formod_rewrite,FileInfois required. To set this, change in your apache config file (usually/etc/httpd/conf/httpd.conf) the lineto
or