0

我希望新域指向 joomla2.5 的现有站点子文件夹

      for example: http://olddomain.com/subfolder  is working but
      http://newdomain.com is not working

我努力了

        Options +FollowSymlinks
        RewriteEngine on
        rewriterule ^subfolder/(.*)$ http://newdomain.com/$1 [r=301,nc]

但不工作提前感谢您的帮助。

4

2 回答 2

0

Move the files to the right location, it's really not meaningful to fool apache on every request and moving stuff around, you're really looking for trouble here.

Maybe you should clear the cache? check the configuration.php for wrong paths? set up a fresh .htaccess?

于 2013-05-12T07:27:03.833 回答
0

最简单的解决方案是更改 newdomain.com 的 DNS 条目,让它直接指向子文件夹。

于 2013-05-11T11:24:11.430 回答