我怎样才能实现与PHP SEO友好的网址? [英] How can I implement SEO-friendly URL with php?
问题描述
目前我使用的Apache HTTP + PHP + MongoDB的。
I'm currently using Apache HTTP + PHP + MongoDB.
我试图推行计算器般的网址是搜索引擎友好的。
I'm trying to implement "stackoverflow"-like url which is SEO friendly.
我应该读每一篇文章标题并以某种方式发送到Apache?如果是这样,我该怎么做呢?
Should I read a title from each article and somehow send that to Apache? If so, how can I do that?
这样Apache可以处理与mod_rewrite的,并具有URL标题字符串像
So that Apache can handle that the title string with mod_rewrite and having URL like
www.example.com/123/seo-friendly-page
给我一些想法,用一个例子片断code
Give me some ideas with an example snippet code
推荐答案
您可以通过的.htaccess的帮助下创建搜索引擎友好的URL。有很多关于在网络上的教程的....这里是一个<一个href=\"http://techie-buzz.com/how-to/create-seo-friendly-urls-using-mod-rewrite-and-php-part-1.html\">LINK.
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.
如果你想使用PHP和MySQL .....然后.....的链接
and if you want more secure with php and mysql..... then.....LINK
我觉得这是有帮助的你....
I think this is helpful for you....
这篇关于我怎样才能实现与PHP SEO友好的网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!