We are using mod_rewrite for a new domain to rewrite urls using .htaccess and a mapping file like this:


[url removed, login to view]


RewriteEngine On

RewriteRule (.*)(.html)$ ${rwmap:$1}


Some-Great-Product [url removed, login to view] [L,R]

As a function of mod_rewrite the new domain responds as we wish when called from a menu or bookmark. The rewrite rule is greedy, but it works.

There also are redirects from an old domain that are initiated from a file included by reference in [url removed, login to view], and passed .htaccess. It works fine with old urls that have no parameters attached. An example would be:


[url removed, login to view]

redirected to

[url removed, login to view]

The rewrite rules associated with .htaccess are then applied.

The .htaccess follow-up to our [url removed, login to view] redirect is a little slower than if rewrites were also from the file included by [url removed, login to view], but we have reasons to want the rewrite map called from .htaccess rather than from httpd.conf.

Some, not all, redirects from the OLD domain are a problem because they contain parameters for the old Miva shopping cart. As an example, we need to redirect

Merchant2/[url removed, login to view];Store_Code=00001&Product_Code=productid-370


[url removed, login to view]

after which it will be subject to a rewrite from .htaccess as described above.

As they exist our redirects and rewrites for the Merchant2 urls fail due to the “?” character that initiates the parameters for the old cart.

We need an apache guru that can create a regex or url-specific map capable of redirecting the Merchant2 url to the [url removed, login to view], or rewriting it from [url removed, login to view] (it must display [url removed, login to view] in the visitor’s browser).

Your work has to function with our existing redirects and rewrites, or you can substitute another plan that works the same way, i.e. rewrites from a map called by .htaccess. (redirects can be from [url removed, login to view] OR from .htaccess). If you have a less-greedy regex for the rewrites, that’s even better, but the redirect of the Merchant2 url to the [url removed, login to view] url is the primary problem that has to be resolved.

Taidot: hakukoneoptimointi, Järjestelmänvalvoja, verkkosivujen suunnittelu

Näytä lisää: using regex in c, url guru, up design 99, regex is, regex in c, regex example, regex c, reasons for product design, prod design, mvc e php, menu guru, http guru com, guru shopping, guru map, guru display, guru 99, greedy's, greedy greedy, greedy example, for greedy

Tietoa työnantajasta:
( 9 arvostelua ) san diego, United States

Projektin tunnus: #198354

Myönnetty käyttäjälle:


Hi. Please check PM.

$40 USD 1 päivässä
(124 Arvostelua)

3 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


I understand the explanations. Need to know the apache version your working on, because of the new additions in higher version of apache module.

$80 USD 3 päivässä
(0 arvostelua)

we can do it pretty fast

$50 USD 1 päivässä
(0 arvostelua)