50 뷰
How to create pretty urls?
Espadon

8 과목, 13 개

읽지 않은 메시지
Hi. I wanted know if it were possible to create friendly urls via the .htaccess file? For example, we have:

http://www.neofrag.com/members/237/espadon.html or http://www.neofrag.com/forum/14/support.html

Now I would like for it to be:

http://www.neofrag.com/profile/espadon or http://www.neofrag.com/forum/14/support

I realize if I wanted to change "members" to "profile" I would have to change the files within neofrag. But lets say I skip doing so, how could I get pretty urls?
2 참가자
2 개
creativewild

17 과목, 53 개

참여자 기증자
읽지 않은 메시지
Hi @espadon,

from what I can tell from the source code, the .html extension is added and used by the route system in place, what you want to achieve is possible by rewriting the urls in the .htaccess file.

At this point is a trial-and-error approach but I will have a look into rewriting the urls to achieve what you need.
Espadon

8 과목, 13 개

읽지 않은 메시지
Thankyou for the reply and yes I noticed the routes system, but I was never good at understanding mod_rewrite to cover everything. Hopefully it all works out (: