Find Jobs
Hire Freelancers

Dregex

$30-250 USD

已取消
已发布超过 15 年前

$30-250 USD

货到付款
We are moving a site from an old cms to drupal and need the regex url rewrite/redirect statements to handle the following. (1. Incoming url contains a ",") [login to view URL],3458,0,0,1,0 rewrites & redirects to [login to view URL] (2. The word following "?" is found in a mapped list and the backreference is used.) [login to view URL] rewrites & redirects to [login to view URL] (3. The word following the "?" is found but cannot be used as a backreference.) [login to view URL] rewrites & redirects to [login to view URL] All 3 expressions may have to be applied. If a url contains a comma the first expression is executed and the rule applications stop. If no comma is present the second rule is tested against a map of terms. If no match is found then the third rule is tested against a second map of terms. If no match is found a page-not-found error is returned. We have used 1 single map in a similar way with the following code: IN [login to view URL]: RewriteMap rwmap dbm:/home/clientid/rewrite/[login to view URL] IN .HTACCESS: RewriteEngine On RewriteCond ${rwmap:$1} >"" RewriteRule (.*)(.html)$ ${rwmap:$1} To be clear: Urls with a comma can use the backreference to create the rw/rd, as an terms found in the first map. Urls not found by the 1st or 2nd expressions will be manually mapped by listing both the originating url and the rw/rd url. We anticipate the map files to be large and we will manually assemble them.
项目 ID: 327548

关于此项目

远程项目
活跃16 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作

关于客户

UNITED STATES的国旗
san diego, United States
5.0
9
会员自10月 16, 2004起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。