I have a site and need htaccess code to make this change in the address bar without making any physical changes in the server folders
example.com/data/65767.html
to be
example.com/65767
example.com/data/56-45.html
to be
example.com/56-45
Regards
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.
Horribly inefficient, you need to make sure your links get changed to point to the one without
.html, but…This works with
/data/<any number of digits or "-">URIs. If you want it to work with anything, replace the[0-9-]with.EDIT:
Yeah, just change the first rule to: