Connecting Tech Pros Worldwide Forums | Help | Site Map

url rewriting need help.

Bob Bedford
Guest
 
Posts: n/a
#1: Nov 11 '05

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




Bob Bedford
Guest
 
Posts: n/a
#2: Nov 11 '05

re: url rewriting need help.



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" <bedford@nospam.com> a écrit dans le message de news:
437517a1$0$1156$5402220f@news.sunrise.ch...[color=blue]
>
>
> 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
>
>
>[/color]



KUB365's Avatar
Administrator
 
Join Date: Jul 2005
Location: Portland, OR
Posts: 975
#3: Nov 12 '05

re: url rewriting need help.


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.
Chung Leong
Guest
 
Posts: n/a
#4: Nov 22 '05

re: url rewriting need help.



Bob Bedford wrote:[color=blue]
> 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[/color]

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.

Bob Bedford
Guest
 
Posts: n/a
#5: Nov 22 '05

re: url rewriting need help.



"Chung Leong" <chernyshevsky@hotmail.com> a écrit dans le message de news:
1131778680.239963.108470@z14g2000cwz.googlegroups. com...[color=blue]
>
> Bob Bedford wrote:[color=green]
>> 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[/color]
>
> 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.[/color]
Main spiders may understand dynamic URL's but most doesnt.


Chung Leong
Guest
 
Posts: n/a
#6: Nov 22 '05

re: url rewriting need help.


I don't buy that assertion. Can you give an example?

Tim Roberts
Guest
 
Posts: n/a
#7: Nov 22 '05

re: url rewriting need help.


"Bob Bedford" <bedford@nospam.com> wrote:[color=blue]
>
>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.[/color]

Of course it can. Now, do you understand that no search engine will ever
probe and catalog your link unless that EXACT LINK is stored somewhere on a
public page? Spiders are stupid creatures. They cannot invent query
strings, they only follow the links on existing pages, but they will
certainly follow links with query strings attached.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Geoff Berrow
Guest
 
Posts: n/a
#8: Nov 22 '05

re: url rewriting need help.


Message-ID: <ehtdn1lph2c5hngfhhrtr86cp799f2ncbf@4ax.com> from Tim
Roberts contained the following:
[color=blue]
>They cannot invent query
>strings, they only follow the links on existing pages, but they will
>certainly follow links with query strings attached.[/color]

Most pundits seem to say that search engines will not follow query
strings (e.g. http://www.netmechanic.com/news/vol2/search_no11.htm )

Do you have definitive information on this?

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Bob Bedford
Guest
 
Posts: n/a
#9: Nov 22 '05

re: url rewriting need help.




"Chung Leong" <chernyshevsky@hotmail.com> a écrit dans le message de news:
1131854194.502580.249920@g47g2000cwa.googlegroups. com...[color=blue]
>I don't buy that assertion. Can you give an example?[/color]
I don't sell it :)....but a few little search engine don't manage the
dynamic url as the say that being dynamically generated, the aren't stored
in their index.
You probably know that google put more importance when the search keywords
are in the URL.

So www.mysite.com&cat=23&id=34

has less importance for google and others than

www.mysite.com/television/sony

when you look at sony television....



Bob Bedford
Guest
 
Posts: n/a
#10: Nov 22 '05

re: url rewriting need help.




"Geoff Berrow" <blthecat@ckdog.co.uk> a écrit dans le message de news:
ki0en1p24522276b2drnoe11iu2emkgujh@4ax.com...[color=blue]
> Message-ID: <ehtdn1lph2c5hngfhhrtr86cp799f2ncbf@4ax.com> from Tim
> Roberts contained the following:
>[color=green]
>>They cannot invent query
>>strings, they only follow the links on existing pages, but they will
>>certainly follow links with query strings attached.[/color]
>
> Most pundits seem to say that search engines will not follow query
> strings (e.g. http://www.netmechanic.com/news/vol2/search_no11.htm )
>
> Do you have definitive information on this?[/color]
as already stated previously:
www.mysite.com&cat=23&id=34

has far less importance for google and others than

www.mysite.com/television/sony

when you look at sony television....

I've already a page with all links that spriders may follow, but they have
no informations on the URL of what kind of object the page is referenced. Of
course there is a title for it, but with the main text on the URL that I
want to taget for search engine users, then the page will win on pagerank.

Bob



Chung Leong
Guest
 
Posts: n/a
#11: Nov 22 '05

re: url rewriting need help.


Geoff Berrow wrote:[color=blue]
>
> Most pundits seem to say that search engines will not follow query
> strings (e.g. http://www.netmechanic.com/news/vol2/search_no11.htm )[/color]

If as the author suggests, "most search engine spiders refuse to follow
links containing CGI query strings," then why is it so hard to name
even one that exhibits this behavior? The competitive pressure in the
search engine market is to index as many pages as possible. It doesn't
make any sense for a company to handicap their spider so arbitrarily.
Google has no problem with query strings. Neither does Teoma or
Inktomi. I've even seen one search engine indexing the result page of
another (through an affiliate).

A search engine, by definition, remembers what's on each page. Its
spider thus could easily avoid getting trapped in a loop without such
draconian measure as rejecting URLs with query strings.

meltedown
Guest
 
Posts: n/a
#12: Nov 22 '05

re: url rewriting need help.


Bob Bedford wrote:[color=blue]
>
>
> "Geoff Berrow" <blthecat@ckdog.co.uk> a écrit dans le message de news:
> ki0en1p24522276b2drnoe11iu2emkgujh@4ax.com...
>[color=green]
>>Message-ID: <ehtdn1lph2c5hngfhhrtr86cp799f2ncbf@4ax.com> from Tim
>>Roberts contained the following:
>>
>>[color=darkred]
>>>They cannot invent query
>>>strings, they only follow the links on existing pages, but they will
>>>certainly follow links with query strings attached.[/color]
>>
>>Most pundits seem to say that search engines will not follow query
>>strings (e.g. http://www.netmechanic.com/news/vol2/search_no11.htm )
>>
>>Do you have definitive information on this?[/color]
>
> as already stated previously:
> www.mysite.com&cat=23&id=34
>
> has far less importance for google and others than
>
> www.mysite.com/television/sony
>
> when you look at sony television....
>
> I've already a page with all links that spriders may follow, but they have
> no informations on the URL of what kind of object the page is referenced. Of
> course there is a title for it, but with the main text on the URL that I
> want to taget for search engine users, then the page will win on pagerank.
>
> Bob[/color]

Are saying the second url is better because it has the words
"television" and "sony" in it ?

So wouldn't www.mysite.com/index.php?&cat=telvision&id=sony
be just as good ?

[color=blue]
>
>
>
>[/color]
Tim Roberts
Guest
 
Posts: n/a
#13: Nov 22 '05

re: url rewriting need help.


Geoff Berrow <blthecat@ckdog.co.uk> wrote:
[color=blue]
>Message-ID: <ehtdn1lph2c5hngfhhrtr86cp799f2ncbf@4ax.com> from Tim
>Roberts contained the following:
>[color=green]
>>They cannot invent query
>>strings, they only follow the links on existing pages, but they will
>>certainly follow links with query strings attached.[/color]
>
>Most pundits seem to say that search engines will not follow query
>strings (e.g. http://www.netmechanic.com/news/vol2/search_no11.htm )[/color]

Do you mean, "One pundit seems to say"? ;)
[color=blue]
>Do you have definitive information on this?[/color]

Only empirical evidence. I tried a half dozen random Google searches, and
every one included a query string in the top ten hits.

The Wikipedia entry on Google says that it has trouble indexing URLs with
query strings with more than six parameters.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Maarten
Guest
 
Posts: n/a
#14: Nov 22 '05

re: url rewriting need help.


Hi there Bob,

Interesting discussion you have going here. I can see why a search
engine might rank path names with relevant keywords higher than a URL
with keywords as parameters. But besides that, it also makes it a lot
easier for your visitors to find stuff on your site. www.php.net for
example uses this. You can search their site by adding keywords at the
end of the URL, i.e. www.php.net/mod_rewrite. Same goes for
wikipedia.org/wiki and dictionary.com. I like it a lot. Very cool and
very intuitive.

As for how they do it. Have a look at
http://httpd.apache.org/docs/2.0/mis...iteguide.html? It contains
many examples created by Ralf Engelschall, the man that invented
mod_rewrite according to mod-rewrite.com. I can also suggest the forum
at http://modrewrite.com/ where they have a beginner's corner :). I am
kind of new to this myself, but found these source very helpful.

Closed Thread