Hello, I have the following problem in joomla, the pie.htc use it, works perfect, but when I turn on the SEF pie.htc to function, could someone give me a solution to achieve 100% success. cheers

Tue May 24, 2011 8:55 pm

RichardBeckett

Joined: Sat May 28, 2011 1:51 pmPosts: 2Location: Leeds

Re: Pie.htc no work with sef url in joomla

I'd guess that the most likely reason is that the URL re-writes are making your link to the htc file point to the wrong place.

When SEF URLs are not applied, Joomla sees all pages as being in the root directory, presumably where your PIE.htc file is located. When turned on, I'm guessing that it will then be looking for the htc file under each page's directory, rather than in the root, and thus getting a file not found for every page but the homepage.

Try making your link to the PIE htc file include the full URL (including the http:// bit), and make sure that when the SEF URLs are turned on, you can still access the htc file by going directly to this link.

Sat May 28, 2011 2:39 pm

linhos

Joined: Mon Apr 11, 2011 8:23 pmPosts: 4

Re: Pie.htc no work with sef url in joomla

Hello, I'm sorry, but not how to get it right, you could be clearer, giving a simpler example, my file PIE.HTC is at the root of the site, I should put it where? Please enable sef take much of my site and make it work with the PIE.HTC, I await an answer, thank you, cheers

Mon Jun 13, 2011 12:58 pm

RichardBeckett

Joined: Sat May 28, 2011 1:51 pmPosts: 2Location: Leeds

Re: Pie.htc no work with sef url in joomla

My guess is that you are probably linking to PIE in your CSS with code which is similar to this:

behavior: url(PIE.htc);

If you instead link to it with the full URL of where to find it on your site:

behavior: url(http://www.domain.com/PIE.htc);

then this *might* be a solution.

The reason I think this might be the solution is because the documentation for PIE says "PIE.htc is loaded relative to the HTML file being viewed, not the CSS file it is called from."

If this is indeed causing the problem, then I'd imagine that your homepage will still be working when SEF is turned on, but the rest of the site will no longer work since the homepage will be the only page not in a subfolder, and so will be the only one which actually finds the PIE.htc file.

If this is the problem and my suggested fix does not work, you might be worth looking at using the javascript version of PIE instead.

Wed Jun 15, 2011 10:14 am

linhos

Joined: Mon Apr 11, 2011 8:23 pmPosts: 4

Re: Pie.htc no work with sef url in joomla

Richard thank you very much, worked perfect, I used the method suggested by you, and now my site in joomla PIE.htc and works perfect with SEF on, thank you.

edit2:Using the same htaccess trick, you might also want to declare the mime-type for HTC files in the htaccess file if necessary:

Code:

Content-type: text/x-component

Kamidan,Well, you should also inform less experienced users about the change of lowercases. Do you also lowercase variabales into the js and php files? I checked and there exist many var in capitals (PIE).

Where exactly in htaccess file should someone put the declaration for mime type for HTC files?

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum