开发者

How can I implement SEO-friendly URL with php?

开发者 https://www.devze.com 2023-03-27 08:11 出处:网络
I\'m currently using Apache HTTP + PHP + MongoDB. I\'m trying to implement \"stackoverflow\"-like url which is SEO friendly.

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 s开发者_如何学JAVAtring with mod_rewrite and having URL like

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

Give me some ideas with an example snippet code


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....

0

精彩评论

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