开发者

How to get expected url

I have developed a website, using Twitter API. Now a little but important problem I am facing is expected URL. There will be users on my site who are going to get details with their user name.

My site url right now is : www.mysite.com/ It also work开发者_运维问答s on : www.mysite.com/home.php and : www.mysite.com/FinalShow01.php

Now what I want is user should be searched when he enter his name as : www.mysite.com/username

I tried this thing on server cpanel, but could not get it done.


If I understand your problem correctly, what you need to do is make /person_name a parameter to be passed to your front page (ie a restful version of /?name=person_name). You don't say what web app framework you are using (if any) but your framework should allow you to do this. If no framework you could roll your own easily enough.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜