Lookup Domain

.comUSD $8.95 .netUSD $8.95 .orgUSD $8.95

Login

1820 Members
0 Members Online
0 Guests Online
3733 Downloads
121403 Domains Served
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
With or without www (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: With or without www
#238
admin (Admin)
Admin
Posts: 143
graph
User Online Now Click here to see the profile of this user
With or without www 5 Months ago Karma: 3  
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#270
cocoreeco (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:With or without www 4 Months, 1 Week 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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#271
cocoreeco (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:With or without www 4 Months, 1 Week 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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#272
admin (Admin)
Admin
Posts: 143
graph
User Online Now Click here to see the profile of this user
Re:With or without www 4 Months, 1 Week ago Karma: 3  
You can paste this code on the top of your index.php of your template.

Admin
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#273
cocoreeco (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:With or without www 4 Months ago Karma: 0  
Thanks for your speed answer and i will try now then i will write to you the result
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#274
cocoreeco (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:With or without www 4 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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Warning: fopen(/home/softuff/public_html/components/com_sef/cache/shCacheContent.php) [function.fopen]: failed to open stream: Permission denied in /home/softuff/public_html/components/com_sef/shCache.php on line 74