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.
-
1Do you have re-write base set in .htaccess?– Seth WarburtonMay 11, 2014 at 14:48
-
1Try using a fresh new htaccess file.– FFrewinMay 11, 2014 at 15:29
-
So you are saying that disabling URL rewrite is still giving you this issue ?– FFrewinMay 11, 2014 at 15:30
-
1I 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 PeatMay 12, 2014 at 0:33
-
1It 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 PeatJun 10, 2014 at 16:23
2 Answers
use http://foreignsite.com
instead of foreignsite.com
-
I've already tried that, the result is: mysite.com/"http:foreignsite.com"– PawelMay 11, 2014 at 13:59
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';
-
-
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