Click here to get back home

apache rewrite and &

 HomeNewsGroups | Search | About
 alt.www.webmaster    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
apache rewrite and & Jeff 04-10-2007
Get Chitika Premium
Posted by Jeff on April 10, 2007, 10:25 am
Please log in for more thread options


I have an apache rewrite rule that keys on the "&", and splits out
the key/value pairs. This is in an .htaccess file.

Unfortunately, some of the values also have "&" in them and these are
escaped as "%26". Apparently by the time Apache reads the rule, the
%26's have already been converted back to "&"'s.

I'm looking for away around this. If I put the rewrite rule in the
apache config file instead of .htaccess, would apache read the "%26" or
the "&"? It's a bit hard to get the sysadmin to reconfigure so I want to
know if the plan is viable.

Jeff

Posted by Chaddy2222 on April 10, 2007, 11:13 am
Please log in for more thread options


> I have an apache rewrite rule that keys on the "&", and splits out
> the key/value pairs. This is in an .htaccess file.
>
> Unfortunately, some of the values also have "&" in them and these are
> escaped as "%26". Apparently by the time Apache reads the rule, the
> %26's have already been converted back to "&"'s.
>
> I'm looking for away around this. If I put the rewrite rule in the
> apache config file instead of .htaccess, would apache read the "%26" or
> the "&"? It's a bit hard to get the sysadmin to reconfigure so I want to
> know if the plan is viable.
>
> Jeff
Maybe try replaceing the and sign in the URL (in .htaccess with
&"
I think that should fix your problem.
--
Regards Chad. http://freewebdesign.cjb.cc




Similar ThreadsPosted
Apache Rewrite question March 18, 2008, 7:36 pm
apache mod rewrite problem June 8, 2008, 8:33 pm
A-hah! One more Chip's Challenge problem solved! () December 3, 2005, 8:03 am
URL Rewrite May 4, 2005, 2:10 pm
A little help w/ htaccess rewrite? May 10, 2006, 5:02 pm
mod rewrite and $_GET March 22, 2007, 8:55 am
Google and Rewrite Rules November 21, 2005, 12:05 am
.htaccess rewrite and conditions May 19, 2006, 2:06 pm
One "universal" rewrite rule? October 17, 2006, 9:22 am
.htaccess rewrite rule March 17, 2008, 2:49 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap