NAME
beginners-faq - FAQ for the beginners-cgi mailing list
1 - Administriva
1.1 - I'm not subscribed - how do I subscribe?
Send mail to <[EMAIL PROTECTED]>
You can also specify your subscription email address by sending email to
(assuming [EMAIL PROTECTED] is your email addres
On Mon, 7 Mar 2005, Jan Eden wrote:
> But I need some rule to do this:
>
> http://mysite.com/pages?id=1234 -> http://mysite.com/pages/1234
>
> And since mod_rewrite does not parse the query string, I have a
> problem here.
So use redirect instead of rewrite:
RedirectMatch /pages?id=(.*) h
Hi Thomas,
Thomas Bätzler wrote on 07.03.2005:
>>I need to translate a URL with a POST query string into a URL like
>>this:
>>
>>http://mysite.com/pages?id=1234 should become
>>http://mysite.com/pages/1234
>
>OTTOH:
>
>RewriteRule ^/pages/([^/]+)/?$/pages?id=$1 [QSA,NS,L]
>
>Or even easi
> I need to translate a URL with a POST query string into a URL
> like this:
>
> http://mysite.com/pages?id=1234
> should become
> http://mysite.com/pages/1234
OTTOH:
RewriteRule ^/pages/([^/]+)/?$/pages?id=$1 [QSA,NS,L]
Or even easier, leave your URL like that and parse the
PATH_INFO
Hi,
I need to translate a URL with a POST query string into a URL like this:
http://mysite.com/pages?id=1234
should become
http://mysite.com/pages/1234
I currently use mod_rewrite to turn the initial URL into
http://mysite.com/redirect.pl?id=1234
and redirect.pl redirects to
http://mysite.com