httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Mearns <mearn...@gmail.com>
Subject Re: [users@httpd] Example of URL-to-URL in mod_rewrite
Date Wed, 15 Apr 2009 18:23:05 GMT
On Wed, Apr 15, 2009 at 1:21 PM, ricardo13 <ricardoogrande@gmail.com> wrote:
>
> Hi,
>
> Thank you
>
> I was reading this link. I will read again.
>
> But, where can I find an example URL-to-URL?
>
> Please
>
> Ricardo
>
>
> awarnier wrote:
>>
>> ricardo13 wrote:
>>> hi all,
>>>
>>> Somebody has a example about "How rewrite URL to URL ???" Or tutorial
>>> about.
>>> I achieved to run some example about URL-to-filename
>>>
>> How about starting here ?
>> http://httpd.apache.org/docs/2.2/rewrite/
>>
>>

Ricardo:

I don't mean to be too harsh, but it sounds like you don't have a very
clear idea of how the server works. At the point of a rewrite rule, it
really doesn't matter whether the thing you're trying to refer to is a
file or not...the target for a rewrite rule is always a URL. Whether
or not that maps to a file depends on how you've set up your server
else where, through aliases, handlers, other rewrite rules, etc. But
the rewrite rule is the same no matter what the URL is actually going
to.

In addition to rereading the Mod-rewrite doc that Warnier pointed you
to, I suggest you also take a careful read through
http://httpd.apache.org/docs/2.2/urlmapping.html, which explains how
URLs actually get mapped to different resources.

-Brian

-- 
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://keys.gnupg.net

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message