473,395 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

url rewriting need help.


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

Nov 11 '05 #1
13 1782

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


Nov 11 '05 #2
Niheel
2,460 Expert Mod 2GB
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.
Nov 12 '05 #3

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.

Nov 22 '05 #4

"Chung Leong" <ch***********@hotmail.com> a écrit dans le message de news:
11**********************@z14g2000cwz.googlegroups. com...

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.

Main spiders may understand dynamic URL's but most doesnt.
Nov 22 '05 #5
I don't buy that assertion. Can you give an example?

Nov 22 '05 #6
"Bob Bedford" <be*****@nospam.com> wrote:

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.


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, ti**@probo.com
Providenza & Boekelheide, Inc.
Nov 22 '05 #7
Message-ID: <eh********************************@4ax.com> from Tim
Roberts contained the following:
They cannot invent query
strings, they only follow the links on existing pages, but they will
certainly follow links with query strings attached.


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/
Nov 22 '05 #8


"Chung Leong" <ch***********@hotmail.com> a écrit dans le message de news:
11**********************@g47g2000cwa.googlegroups. com...
I don't buy that assertion. Can you give an example?

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

Nov 22 '05 #9


"Geoff Berrow" <bl******@ckdog.co.uk> a écrit dans le message de news:
ki********************************@4ax.com...
Message-ID: <eh********************************@4ax.com> from Tim
Roberts contained the following:
They cannot invent query
strings, they only follow the links on existing pages, but they will
certainly follow links with query strings attached.


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?

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

Nov 22 '05 #10
Geoff Berrow wrote:

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


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.

Nov 22 '05 #11
Bob Bedford wrote:


"Geoff Berrow" <bl******@ckdog.co.uk> a écrit dans le message de news:
ki********************************@4ax.com...
Message-ID: <eh********************************@4ax.com> from Tim
Roberts contained the following:

They cannot invent query
strings, they only follow the links on existing pages, but they will
certainly follow links with query strings attached.
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?


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


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 ?



Nov 22 '05 #12
Geoff Berrow <bl******@ckdog.co.uk> wrote:
Message-ID: <eh********************************@4ax.com> from Tim
Roberts contained the following:
They cannot invent query
strings, they only follow the links on existing pages, but they will
certainly follow links with query strings attached.
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 mean, "One pundit seems to say"? ;)
Do you have definitive information on this?


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, ti**@probo.com
Providenza & Boekelheide, Inc.
Nov 22 '05 #13
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.

Nov 22 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jon Maz | last post by:
Hi All, I am experimenting with URL Rewriting using the techniques outlined by Scott Mitchell in his article "URL Rewriting in ASP.NET"...
3
by: Jamie Jackson | last post by:
I'm rewriting all links' onclick events, but I'm having a problem. The onclick event that I'm inserting works correctly in Opera, but not in FF or IE. I'm retroactively adding the statement...
3
by: Michael Appelmans | last post by:
I'm trying to use a rule based URL rewrite application which uses HttpApplication.RewritePath. I keep getting "rsource not found" error in application when running on shared web host although the...
2
by: R-D-C | last post by:
Can these two functions coexist? We have a web site where the querystrings are removed using URL Rewriting. Instead the page appears to be a html page with a long name (containing what would be...
0
by: Lee | last post by:
Hi all ;) Preamble -------- I'm using URL rewriting to enforce a frames policy (yeah, I know frames are 'bad' :) - i.e. if a request comes in for a page which should be nested within a...
0
by: Netveloper | last post by:
Hi, I'm playing around with url rewriting and I have come across a problem which I can't seem to get past. The general ide is to have a IHttpHandlerFactory class which checks the incoming...
3
by: Chris | last post by:
Can anyone give me any ideas on how to do URL rewriting in ASP with IIS 5 (possibly 6). Aside of course from switching to Apache ;) Regards, Chris. I want my products/product.asp?id=1243124 to read...
3
by: Smokey Grindel | last post by:
I am using ASP.NET 2.0 and know about the static list in the web.config for URL rewriting, but my list is dynamic and I am running into some problems... 1) How do you get URL rewriting to work in...
2
by: Seth Williams | last post by:
The first scenario is that I want to create one website for a particular industry - let's say for Farm Machinery so I have a shared hosting site called myFarmMachinery.com But I want to sell...
1
Shinobi
by: Shinobi | last post by:
I am using ASP.net(c#) for my project. In my my project 2 pages are using URL rewriting method by referring this article URL Rewriting using Intelligencia UrlRewriter Example 1 - Blog Day...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.