.htaccess-如何替换旧网址,然后重定向到新网址

时间:2018-12-16 12:42:15

标签: apache .htaccess url-redirection

在htaccess中,我想更改一个旧的url:

$(document).ready(function () {
    var url = window.location.href;
    $('a.list-group-item').each(function () {
        if (this.href == url) {
            $(this).addClass('active');
            return false; // exit the loop
        }
    });
});

http://olddomain.com/n/1234/permatitle

但是我尝试过的任何方式,重定向均不起作用。

0 个答案:

没有答案
相关问题