1

I have a site based on Joomla. It worked perfectly but I had to move it from one server to another. Since that there's a problem with external URLs - they are rewritten in such way: foreignsite.com => mysite.com/"foreignsite.com" Needless to say that it causes 404 error. I've tried: renaming .htaccess and changing joomla SEO options. Both with no luck and no effect at all. I have completely no idea what to try to do next. The server is running on apache, PHP 5.3, Joomla 3.1.1. I kindly ask for your help.

7
  • 1
    Do you have re-write base set in .htaccess? May 11, 2014 at 14:48
  • 1
    Try using a fresh new htaccess file.
    – FFrewin
    May 11, 2014 at 15:29
  • So you are saying that disabling URL rewrite is still giving you this issue ?
    – FFrewin
    May 11, 2014 at 15:30
  • 1
    I found whenever this happens it's because I didn't put http:// in front of the url, especially in JCE. It assumes it's an internal link and puts my site url in front of it. I suspect that's not your issue, but I thought I'd share that in case it is.
    – Brian Peat
    May 12, 2014 at 0:33
  • 1
    It might not be your editor that's the problem. You might want to check with your web host or see if your database is using the wrong format. It sounds like it's trying to do something to your code that it shouldn't be doing.
    – Brian Peat
    Jun 10, 2014 at 16:23

2 Answers 2

1

use http://foreignsite.com instead of foreignsite.com

1
  • I've already tried that, the result is: mysite.com/"http:foreignsite.com"
    – Pawel
    May 11, 2014 at 13:59
0

In your configuration.php on line 20, you should see a variable called $live_site.

Try changing it so that is reads:

public $live_site = 'http://mysite.com';
2
  • No success but thanks for reply.
    – Pawel
    May 11, 2014 at 21:49
  • public $live_site = 'http://mysite.com'; live site is always The actual URL of the site for example - http://yourdomain.com (unless your site is in a subdirectory) never an external url to the site. (the answer has been edited, pending peer review) May 1, 2016 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.