.htaccess rewrite already SEO friendly URL but shorter?

Basically I have built a mini MVC and it goes /controller/method/param so for example im doing user profiles and it goes like /users/profile/admin but is there a way using .htaccess to make it go /profile/admin??? So basically being able to rewrite an already SEO friendly URL but just make it shorter?


This is more appropriate in the Server Config category so I have moved it there because .htaccess or rewriting the URL has nothing to do with PHP at all. PHP may interpret it and do something with it, but this is more specifically Server Config or Apache if you want to rewrite the URL to look a certain way. What do you have for your .htaccess file so far?

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.