具有不同上下文的MODX 301重定向

时间:2018-08-16 20:08:06

标签: .htaccess modx-revolution

首先要澄清的是,我不确定这是否与Babel有关,但我的其他301机工作正常。

背景:该网站使用英语.com /和西班牙文.com / es

英语301的运行正常。示例:

<script src="https://use.fontawesome.com/fcc45c3f3f.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>

<div class="container-fluid" id="core-content">

    <form name="search-filter-form" method="POST" class="">
        <div class="container-fluid">
            <div class="">
                <div class="row">

                    <div class="text-center col-xs-2">
                        <i class="fa fa-search-plus zoom-in" aria-hidden="true"></i>
                        <i class="fa fa-search-minus zoom-out" aria-hidden="true"></i>
                    </div>
                    <div class="text-center col-xs-1">
                        <a href="#" class="btn btn-default btn-primary ">Reset</a>
                    </div>

                </div>
            </div>

        </div>
    </form>


    <div id="loading-msg" style="display: none;">
        <div class="row">
            <div class="spacer-sml"></div>
        </div>
        <div class="row">
            <div class="spacer-sml"></div>
        </div>
        <div class="col-xs-12 text-center">
            <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
            <span class="sr-only">Loading...</span>
            <p>Loading...</p>
        </div>

    </div>
    <div id="portfolio-container" class="container-fluid portfolio-container" style="">

        <div class="spacer-sml"></div>
        <form action="#" id="portfolio-form" name="portfolio-form" method="POST" class="">

            <div class="board-canvas">
                <div id="board" class="u-fancy-scrollbar js-no-higher-edits js-list-sortable ui-sortable">
                  <div id="zoom-wrapper">
                    <div class="js-list list-wrapper ">
                        <div class="list js-list-content">
                            <div class="list-header js-list-header u-clearfix is-menu-shown">
                                <div class="list-header-target js-editing-target"></div>
                                <h4 class="list-header-name-assist js-list-name-assist text-center" dir="auto">
                                    Awaiting Approval
                                </h4>
                            </div>
                            <div class="sortable-list ui-sortable" data-column-id="awaitapprove" data-column-value="awaitapprove Awaiting Approval">


                                <div data-portfolio-path="Tennis" data-portfolio-id="5ac752e61c99a112046cf391" class="list-card js-member-droppable is-covered ui-droppable search-display-block sfilter ui-sortable-handle">

                                    <div class="list-card-cover js-card-cover portfolio-card" style="background-color: #02bf6f;
              
             color: #000000; ">

                                        <div class="portfolio-card-filter-block">
                                            <div class="portfolio-card-title portfolio-card-filter-heading ">
                                                <div class="accordion-toggle collapsed portfolio-toggle" data-toggle="collapse" data-parent="#portfolioAccordion" data-target="#portfolio5ac752e61c99a112046cf391" aria-expanded="false">
                                                    <span class="portfolio-accordion"></span>

                                                    <i class="fa fa-user-circle " aria-hidden="true" title="You are a member of this portfolio"></i>&nbsp;

                                                    <span class="archiware-archive-state" data-portfolio-path="Tennis" data-portfolio-id="5ac752e61c99a112046cf391"><i class="fa fa-database" aria-hidden="true" title="Has been archived"></i></span>                                                    Tennis
                                                    <span class="text-right"></span>

                                                </div>
                                            </div>
                                            
                                        </div>

                                    </div>

                                    
                                    <hr>
                                    <div class="list-card-details text-center">
                                        <div class="list-card-members js-list-card-members">
                                            <div class="portfolio-icon-list " data-example-id="portfolio-icon-list">
                                                <div class="btn-group portfolio-specific-btn portfolio-overview-btn" title="Portfolio Overview">
                                                    <a href="#" class="portfolio-overview">
                        <i class="fa fa-eye fa-1-5-font-size" aria-hidden="true"></i></a>
                                                </div>
                                                <div class="btn-group portfolio-specific-btn portfolio-checklist-btn" title="Portfolio Checklist">
                                                    <a href="#" class="portfolio-checklist">
                        <i class="fa fa-list fa-1-5-font-size" aria-hidden="true"></i></a>
                                                </div>

                                                <div class="btn-group portfolio-specific-btn open-portfolio-metadata-btn" data-dialog-id="5ac752e61c99a112046cf391" title="Portfolio Metadata">
                                                    <a href="#" class="portfolio-metadata">
                    <i class="fa fa-file-text fa-1-5-font-size" aria-hidden="true"></i></a>
                                                </div>

                                                <div class="btn-group portfolio-specific-btn open-portfolio-forum-btn" data-dialog-id="5ac752e61c99a112046cf391" title="Portfolio Forum">
                                                    <a href="#" class="portfolio-forum">
                        <i class="fa fa-commenting fa-1-5-font-size" aria-hidden="true"></i></a>

                                                </div>

                                            </div>
                                        </div>

                                        <div class="list-card-project-section">

                                            <div class="project-block project-block-primary open-project-dialog-btn" name="open-project-dialog-btn" data-dialog-id="project-dialog-motion-5ac752e61c99a112046cf391">
                                                Motion Sports: <span class="badge">1</span>
                                            </div>

                                            <div class="dialog project-dialog project-dialog-motion" name="project-dialog-motion" id="project-dialog-motion-5ac752e61c99a112046cf391" title="Awaiting Approval Motion Sports">

                                                <div class="project-card">
                                                    <div class="project-card-content">

                                                        <div class="fps-tag-block fps-tag-Motion">
                                                            <dl class="dl-horizontal">
                                                                <dt class="text-left">Storyline:</dt>
                                                                <dd>Motion</dd>
                                                            </dl>
                                                        </div>

                                                        <div class="fps-tag-block fps-tag-">
                                                            <dl class="dl-horizontal">
                                                                <dt class="text-left">Comment:</dt>
                                                                <dd></dd>
                                                            </dl>
                                                        </div>

                                                        <div class="fps-tag-block fps-tag-1">
                                                            <dl class="dl-horizontal">
                                                                <dt class="text-left">Version:</dt>
                                                                <dd>1</dd>
                                                            </dl>
                                                        </div>

                                                        <div class="fps-tag-block fps-tag-createddate">
                                                            <dl class="dl-horizontal">
                                                                <dt class="text-left">Created:</dt>
                                                                <dd>6-4-2018</dd>
                                                            </dl>
                                                        </div>

                                                        <div class="fps-tag-block fps-tag-inprogress">
                                                            <dl class="dl-horizontal">
                                                                <dt class="text-left">Status:</dt>
                                                                <dd>In Progress</dd>
                                                            </dl>
                                                        </div>

                                                        <div class="fps-tag-block fps-tag-{day=11, month=4, year=2018}">
                                                            <dl class="dl-horizontal">
                                                                <dt class="text-left">Completed Date:</dt>
                                                                <dd>11-4-2018</dd>
                                                            </dl>
                                                        </div>

                                                    </div>
                                                </div>

                                            </div>

                                            

                                            
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="js-list list-wrapper ">
                        <div class="list js-list-content">
                            <div class="list-header js-list-header u-clearfix is-menu-shown">
                                <div class="list-header-target js-editing-target"></div>
                                <h4 class="list-header-name-assist js-list-name-assist text-center" dir="auto">
                                    Approved
                                </h4>
                            </div>
                            <div class="sortable-list ui-sortable" data-column-id="approved" data-column-value="approved Approved">

                                <div class="ui-sortable-handle">

                                </div>

                            </div>
                        </div>
                    </div>

                    <div class="js-list list-wrapper ">
                        <div class="list js-list-content">
                            <div class="list-header js-list-header u-clearfix is-menu-shown">
                                <div class="list-header-target js-editing-target"></div>
                                <h4 class="list-header-name-assist js-list-name-assist text-center" dir="auto">
                                    Editing in Progress
                                </h4>
                            </div>
                            <div class="sortable-list ui-sortable" data-column-id="editinprog" data-column-value="editinprog Editing in Progress">

                                <div class="ui-sortable-handle">

                                </div>

                            </div>
                        </div>
                    </div>

                    <div class="js-list list-wrapper ">
                        <div class="list js-list-content">
                            <div class="list-header js-list-header u-clearfix is-menu-shown">
                                <div class="list-header-target js-editing-target"></div>
                                <h4 class="list-header-name-assist js-list-name-assist text-center" dir="auto">
                                    Awaiting Graphics
                                </h4>
                            </div>
                            <div class="sortable-list ui-sortable" data-column-id="awaitgraph" data-column-value="awaitgraph Awaiting Graphics">

                                <div class="ui-sortable-handle">

                                </div>

                            </div>
                        </div>
                    </div>

                    <div class="js-list list-wrapper ">
                        <div class="list js-list-content">
                            <div class="list-header js-list-header u-clearfix is-menu-shown">
                                <div class="list-header-target js-editing-target"></div>
                                <h4 class="list-header-name-assist js-list-name-assist text-center" dir="auto">
                                    Ready for Dubbing
                                </h4>
                            </div>
                            <div class="sortable-list ui-sortable" data-column-id="readydubbing" data-column-value="readydubbing Ready for Dubbing">

                                <div class="ui-sortable-handle">

                                </div>

                            </div>
                        </div>
                    </div>

                    <div class="js-list list-wrapper ">
                        <div class="list js-list-content">
                            <div class="list-header js-list-header u-clearfix is-menu-shown">
                                <div class="list-header-target js-editing-target"></div>
                                <h4 class="list-header-name-assist js-list-name-assist text-center" dir="auto">
                                    Ready for Grading
                                </h4>
                            </div>
                            <div class="sortable-list ui-sortable" data-column-id="readygrading" data-column-value="readygrading Ready for Grading">

                                <div class="ui-sortable-handle">

                                </div>

                            </div>
                        </div>
                    </div>

                    <div class="js-list list-wrapper ">
                        <div class="list js-list-content">
                            <div class="list-header js-list-header u-clearfix is-menu-shown">
                                <div class="list-header-target js-editing-target"></div>
                                <h4 class="list-header-name-assist js-list-name-assist text-center" dir="auto">
                                    Completed
                                </h4>
                            </div>
                            <div class="sortable-list ui-sortable" data-column-id="completed" data-column-value="completed Completed">

                                <div class="ui-sortable-handle">

                                </div>

                            </div>
                        </div>
                    </div>

                    <div class="js-list list-wrapper ">
                        <div class="list js-list-content">
                            <div class="list-header js-list-header u-clearfix is-menu-shown">
                                <div class="list-header-target js-editing-target"></div>
                                <h4 class="list-header-name-assist js-list-name-assist text-center" dir="auto">
                                    Not Approved -Do Not Distribute
                                </h4>
                            </div>
                            <div class="sortable-list ui-sortable" data-column-id="notapproved" data-column-value="notapproved Not Approved -Do Not Distribute">

                                <div class="ui-sortable-handle">

                                </div>

                            </div>
                        </div>
                    </div>

                </div>
              </div>
            </div>
            <div class="spacer-sml"></div>

        </form>

    </div>

</div>

西班牙语版本的301无法使用,甚至没有提供404,只是超时。我尝试过这些没有成功:

RewriteRule ^path/page/ https://www.test.com/path/new-page/ [L,NC,R=301]

我也尝试使用重定向器MODX Extra。它适用于.com / 301s,但不适用于.com / es / URL。

0 个答案:

没有答案