how to do a rewriterule on output of previous rewriterule

Discuss practical ways rearrange URLs using mod_rewrite.

how to do a rewriterule on output of previous rewriterule

Postby quickques » Tue Jan 07, 2003 3:00 pm

is this possible?

here is my code...

RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ /NewPath/0,,%{QUERY_STRING},00.html
RewriteMap url-encode txt:/path/urlencode.txt
RewriteRule ^(.*)?(.*)$ /NewPath/0,,${url-encode:$2}

basically, i'm trying to url encode the querystring that comes in, and then reformat the entire url with the encoded querystring located elsewhere in the url.

also, do i do this in httpd.conf or .htaccess? from what i read so far, i believe httpd.conf.

thanks!
quickques
 

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 3 guests

cron