expression question

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

expression question

Post by itsmani1 »

Here is my rule its working fine but i have a question.
It throws anything like "pro/[0-9]/[xxxx.html]" to production.php but my question is what is the function of
?ContentID=$1 can any one tell me what will it give me, this was suggested me by some one.

Code: Select all

RewriteRule ^pro/([0-9]+)/(a-z_)tic.html production.php?ContentID=$1
chrisranjana
Forum Newbie
Posts: 12
Joined: Sat Jun 03, 2006 4:42 am
Location: chennai India
Contact:

http header content id (content-id)

Post by chrisranjana »

Taken from

http://www.w3.org/TR/NOTE-drp-19970825

A new HTTP header field called Content-ID is used to specify the correct version of the file that is requested. The server can use the content-identifier in the Content-ID field server to determine if the requested version of the file can be delivered to the client.

The content identifier of the returned file should be included in the HTTP reply header using the Content-ID header field. The content identifier in the reply must match the requested content identifier. If the correct version of the file is not available, the server should respond with the error: "404 File Version Not Found".

If no content identifier is specified in the HTTP GET request, then the server should return the current version of the file, as is the case in a normal HTTP request. However, the reply should always include the Content-ID field if the correct content identifier is known for the file that is returned.

A server that is unaware of the Content-ID field will always reply with the current version of the requested file, regardless of the content identifier specified in the request. Note that the server is not required to specify a Content-ID in the reply, and that it is the responsibility of the client to verify that the reply contains the correct content identifier if a Content-ID field is present in the reply. When the requested content identifier contains a verifiable checksum URN, the client should always recompute the checksum to verify that the correct content was returned.


Post Reply