Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

apache - How can I implement SEO-friendly URL with php?

I'm currently using Apache HTTP + PHP + MongoDB.

I'm trying to implement "stackoverflow"-like url which is SEO friendly.

Should I read a title from each article and somehow send that to Apache? If so, how can I do that?

So that Apache can handle that the title string with mod_rewrite and having URL like

www.example.com/123/seo-friendly-page 

Give me some ideas with an example snippet code

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can create SEO friendly URL's by the help of .htaccess. there is a lot of tutorial on the web about that.... here is a LINK.

and if you want more secure with php and mysql..... then.....LINK

I think this is helpful for you....


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...