且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

网址重写需要帮助。

更新时间:2023-11-27 21:52:16



我忘了:


我也会在文章中写一个完整的URL。

我有一个直接选择文章字段(输入文本,我可以输入

文章ID)。

让我们得到这个地址:
www.mysite.com?id=3563


我想创建带有来自MySQL的详细信息的URL

数据库及其结果:
www.mysite.com /电视/索尼/ 70 / 3563.html


Bob

" Bob Bedford" <是***** @ nospam.com> écritdansle message de news:

43 ********************** @ news.sunrise.ch ...


你好,

我在很多网站上尝试了各种教程,但我绝对不了解它是如何工作的。

我的网络服务器启用了mor_rewrite。

我有一个管理电子产品的网站。

所以我找了一个搜索我的网站中的引擎从MySQL获取值。
查询完成后,我可能会这样:

http://www.mysite.com/index.php?类型... riceto =& color =
这给了我任何70厘米对角的索尼电视,价格超过1000欧元。
点击对任何项目我有:
www.mysite.com/它em.php?id = 3998

对搜索引擎不是很好,而且找不到它。
我的目标是拥有以下内容:
www.mysite.com/television/sony/70/>1000获取清单和
www.mysite.com/television/sony/70/>1000/3998.html获取该项目或类似的东西

这是因为我希望搜索引擎在查看我的页面时得到一些单词,然后引用有趣的单词(如sony
电视)

怎么办?人们也可以为每篇文章添加书签,如果
文章不再可用,我必须能够检索文章或重定向到索引页面。
>任何可以解释很多例子的链接......或者是一个非常好的新手教程。

Bob




你有没有在谷歌上搜索搜索引擎友好的mod_rewrite?尝试添加教程到最后。


有很多例子。你不应该很难找到一个。




Bob Bedford写道:
不是很好搜索引擎,它无法找到。
我的目标是拥有类似的东西:
www.mysite.com/television/sony/70/>1000获取列表和
www.mysite.com/television/sony/70/>1000/3998.html该项目或类似的东西
类似




我必须质疑这个概念,搜索引擎无法使用查询字符串处理页面

。当我查看我的服务器日志时,我经常看到它们

深度扫描我的网站,其网址如
http://www.example.com/page.php?doc=author


我怀疑,与页面过期有关的是什么。如果一个页面设置为立即过期,那么搜索引擎就有意义

忽略它。



Hello there,

I''ve tried various tutorials on many websites but I absolutely don''t
understand how it works.

My webserver has mor_rewrite enabled.

I''ve a website where I manage electronics stuffs.

So I''ve a search engine in my site wich get values from MySQL.
when a query is done, I may have this:

http://www.mysite.com/index.php?type...riceto=&color=

this gives me any sony television wich is 70cm diagonal and wich price is
more than 1000 Euros.
clicking on any item Ill have:
www.mysite.com/item.php?id=3998

Isn''t very good for search engines, and it can''t be found.
My goal is to have something like:
www.mysite.com/television/sony/70/>1000 to get the list and
www.mysite.com/television/sony/70/>1000/3998.html for the item or something
similar

This is because I want the search engine to get some words when looking at
my pages and then being referenced for the interesting words (like sony
television)

How to do so ? Also the people may be able to bookmark every article and I
must be able to retrieve the article or redirect to the index page if the
article isn''t available anymore.

any link that explain well with lot of examples...or a very good tutorial
for newbie.

Bob


I forgot:

Ill also write a complete URL given an article.
I''ve a direct selection article field (a input text where I can enter the
article id).
let''s get this address:
www.mysite.com?id=3563

I''d like to have the URL created with the details coming from the MySQL
database and as result:
www.mysite.com/television/sony/70/3563.html

Bob
"Bob Bedford" <be*****@nospam.com> a écrit dans le message de news:
43**********************@news.sunrise.ch...


Hello there,

I''ve tried various tutorials on many websites but I absolutely don''t
understand how it works.

My webserver has mor_rewrite enabled.

I''ve a website where I manage electronics stuffs.

So I''ve a search engine in my site wich get values from MySQL.
when a query is done, I may have this:

http://www.mysite.com/index.php?type...riceto=&color=

this gives me any sony television wich is 70cm diagonal and wich price is
more than 1000 Euros.
clicking on any item Ill have:
www.mysite.com/item.php?id=3998

Isn''t very good for search engines, and it can''t be found.
My goal is to have something like:
www.mysite.com/television/sony/70/>1000 to get the list and
www.mysite.com/television/sony/70/>1000/3998.html for the item or
something similar

This is because I want the search engine to get some words when looking at
my pages and then being referenced for the interesting words (like sony
television)

How to do so ? Also the people may be able to bookmark every article and I
must be able to retrieve the article or redirect to the index page if the
article isn''t available anymore.

any link that explain well with lot of examples...or a very good tutorial
for newbie.

Bob




Have you done a search on google for "search engine friendly mod_rewrite"? try to add tutorial to the end of it too.

There are pleny of examples out there. You shouldn''t have a hard time finding one.



Bob Bedford wrote:
Isn''t very good for search engines, and it can''t be found.
My goal is to have something like:
www.mysite.com/television/sony/70/>1000 to get the list and
www.mysite.com/television/sony/70/>1000/3998.html for the item or something
similar



I have to question this notion that search engines can''t handle pages
with query strings. When I look at my server log, I regularly see them
deep scanning my site, which has URLs like
http://www.example.com/page.php?doc=author.

What''s more relevant, I suspect, is the page expiration. If a page is
set to expire immediately, it''d make sense for a search engine to
ignore it.