【问题标题】:Rewrite Condition Rule for JIRA ServiceDesk为 JIRA ServiceDesk 重写条件规则
【发布时间】:2014-10-20 07:09:15
【问题描述】:

Atlassian JIRA 的 Service Desk 插件门户有它丑陋的 url,用户必须记住这个长 URL

http://jira.domain.com/servicedesk/customer/portal/1

对于我的用户,我想拥有一个特殊的域:

http://helpdesk.domain.com/

任务没那么简单,我需要在 Apache 中重写 url

http://helpdesk.domain.com/ --- > http://jira.domain.com/servicedesk/customer/portal/1

但需要排除

http://helpdesk.domain.com/s/files.css ---> http://jira.domain.com/s/files.css
http://helpdesk.domain.com/rest/myjson ---> http://jira.domain.com/rest/myjson
http://helpdesk.domain.com/secure/some.html ---> http://jira.domain.com/secure/some.html

【问题讨论】:

  • 你最终让这个工作了吗?

标签: apache rewrite jira


【解决方案1】:

我可以想象这样的事情:

RewriteCond   %{REQUEST_URI}  !/helpdesk.domain.com/s/files.css 
RewriteCond   %{REQUEST_URI}  !/helpdesk.domain.com/rest/myjson
ReWriteCond   %{REQUEST_URI}  !/helpdesk.domain.com/secure/some.html
RewriteCond   %{HTTP_HOST}    ^(www\.)?helpdesk\.domain\.com [NC]
RewriteRule   ^(.*)$          http://jira.domain.com/servicedesk/customer/portal/1/$1 [R=301,NC,L]

【讨论】:

    猜你喜欢
    • 2011-10-02
    • 2013-04-08
    • 2013-04-24
    • 1970-01-01
    • 2017-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多