简体   繁体   中英

Joomla 2.5.9 Domain name repeating in URL

I have installed the Joomla 2.5.9 on Windows server with IIS7 . :) I disabled all the SEF setting in configuration.

Now , I logged in to admin of joomla 2.5.9. When I see the public side , it show it perfect.. but when I go for any other link.. it have multiple time of domain name in url..

like...

http://domainname.com/index.php?option=com_content&view=article&id=6&Itemid=102

I tried with enabling SEO URL , and enabled the web.conf. and settings like below,

Search Engine Friendly URLs -yes Use URL rewriting -yes Adds Suffix to URL -yes.

http://domainname.com/domainname.com/features.html

is this error with joomla 2.5.9???

Thanks, Gaurish

http://forum.joomla.org/viewtopic.php?f=615&t=820080

Change in configuration.php

var $live_site = '';

to

var $live_site = 'http://domainname.com';

I tested with some configuration & that works for me..
I tried JTC code,

public $live_site = 'http://domainname.com';

It works on front-end, but throws the error in backend , even I am not able to Login in admin.

So, I changed the configuration file as below,

$url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if (true== strpos(strtolower($url),'administrator')) :

class JConfig {
.......
public $live_site = '';
......
}
else:
class JConfig {
......
public $live_site = 'http://www.domainname.com/';
.....
}
endif;

and this work perfectly for me.. all the URL's on front-end are showing correct, not domain name repeated.

But URL's in back are showing same as early, but I can do the updates & admin task there.. that really don't interrupt me.

One more think , I am not able update global configuration file.. as we edited it .. so I need do it manually.

Thanks, Gaurish

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM