Relative URLs, or Absolute URLs? |
[eluser]jayapalchandran[/eluser]
And i faced another problem by using absolute url is with flash and ajax. and ajax request with www and non www. if you have set baseurl as http://sitename.com and if you are accessing scripts using ajax then you might face this problem consider that the users is accessing the page using http://sitename.com and in your config you have did it like baseurl = 'http://sitename.com . then there wont be a problem because there is no www in the browser url and also in the ajax request... but if users try to access the page as http://www.sitename.com then the absolute url for ajax will not work and it will throw Permission Denied error because the actual url is http://www.sitename and the now ajax url is http://site which are different and hence an error is thrown. the same error will throw up for flash or other controls i hope. so even in flash if you are displaying images using dynamically generated xml then you should access the url as relative and not absolute... so /folder/xmloutput.php would be appropriate... |
Messages In This Thread |
Relative URLs, or Absolute URLs? - by El Forum - 01-16-2008, 06:35 PM
Relative URLs, or Absolute URLs? - by El Forum - 01-16-2008, 06:43 PM
Relative URLs, or Absolute URLs? - by El Forum - 01-16-2008, 06:46 PM
Relative URLs, or Absolute URLs? - by El Forum - 01-16-2008, 09:19 PM
Relative URLs, or Absolute URLs? - by El Forum - 01-18-2008, 04:18 PM
Relative URLs, or Absolute URLs? - by El Forum - 01-18-2008, 04:29 PM
Relative URLs, or Absolute URLs? - by El Forum - 01-18-2008, 05:31 PM
Relative URLs, or Absolute URLs? - by El Forum - 01-18-2008, 08:46 PM
Relative URLs, or Absolute URLs? - by El Forum - 01-19-2008, 07:49 AM
Relative URLs, or Absolute URLs? - by El Forum - 01-19-2008, 09:31 AM
Relative URLs, or Absolute URLs? - by El Forum - 01-19-2008, 12:05 PM
Relative URLs, or Absolute URLs? - by El Forum - 02-08-2010, 06:45 AM
Relative URLs, or Absolute URLs? - by El Forum - 02-08-2010, 06:49 AM
Relative URLs, or Absolute URLs? - by El Forum - 02-08-2010, 06:54 AM
Relative URLs, or Absolute URLs? - by El Forum - 02-08-2010, 06:59 AM
Relative URLs, or Absolute URLs? - by El Forum - 02-09-2010, 12:00 AM
|