Joomla Ajax Domain Whois Search

.comUSD $12.99 .netUSD $12.99 .orgUSD $12.99
7035 Members
683349 Domains Served
Welcome, Guest
Please Login or Register.    Lost Password?

With or without www
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: With or without www
#238
With or without www 4 Years ago Karma: 2
Attention all users -

If your live site name in your joomla configuration is prefixed by www then your site may not accept Ajax requests without www. And vice versa.

So, in order to Ajax requests run properly, please add the following code in index.php file of your template

if your $mosConfig_live_site var does not have www:
Code:

$getHttpHost = $_SERVER['HTTP_HOST'];
if (stristr($getHttpHost,"www")) {
  if (count($_GET) == 0 && count($_POST) == 0) {
header("Location: ".$mosConfig_live_site );
  }
}

And if your $mosConfig_live_site var has www:
Code:

$getHttpHost = $_SERVER['HTTP_HOST'];
if (!stristr($getHttpHost,"www"«»)) {
  if (count($_GET) == 0 && count($_POST) == 0) {
header("Location: ".$mosConfig_live_site );
  }
}

Admin
admin
Moderator
Posts: 324
graph
User Offline Click here to see the profile of this user
Gender: Male softuff.org
The administrator has disabled public write access.
 
#270
Re:With or without www 3 Years, 11 Months ago Karma: 0
dear mr admin
there are 4 locations for $mosConfig_live_site var in my index.php template
please show to us where will paste this code exactly
thanks
cocoreeco
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Gender: Male
The administrator has disabled public write access.
 
#271
Re:With or without www 3 Years, 11 Months ago Karma: 0
dear mr admin
there are 4 locations for $mosConfig_live_site var in my index.php template
please show to us where will paste this code exactly
thanks
cocoreeco
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Gender: Male
The administrator has disabled public write access.
 
#272
Re:With or without www 3 Years, 11 Months ago Karma: 2
You can paste this code on the top of your index.php of your template.

Admin
admin
Moderator
Posts: 324
graph
User Offline Click here to see the profile of this user
Gender: Male softuff.org
The administrator has disabled public write access.
 
#273
Re:With or without www 3 Years, 11 Months ago Karma: 0
Thanks for your speed answer and i will try now then i will write to you the result
cocoreeco
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Gender: Male
The administrator has disabled public write access.
 
#274
Re:With or without www 3 Years, 11 Months ago Karma: 0
i had edit my index.php template but there is no thing happened
the problem still found when i try to click on any extension to edit the price i see white page ( empty )

but every thing is running well on localhost so i still have this problem<br><br>Post edited by: cocoreeco, at: 2008/02/28 09:31
cocoreeco
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Gender: Male
The administrator has disabled public write access.
 
Go to topPage: 12