I have installed Phoca-PDF on my fresh installed Joomla 1.5.15, because of the superior quality of PDF-generation. For generating SEF-urls, I have installed sH404SEF with .htaccess / rewrite. Right from the beginning, I have had the problem, that the URL for the PDFs are not generated correctly. But the website had to go live with all that content and as a workaround, I have disabled all PDF-icons.
But now it is time, to correct this issue.
I have found the thread:
viewtopic.php?f=37&t=6650
here in the forum and I have tried the trick by inserting the two lines in the .htaccess-file:
Code: Select all
RewriteCond %{QUERY_STRING} ^(([^&]*&)*)format=pdf(&.*)?$
RewriteRule ^ %{REQUEST_URI}?%1format=phocapdf%3 [L,R=301]
I have tried to switch the way of generation of the extension in Phoca PDF plugin, and of course I have cleared the cache and deleted all the SEF-URLs concerning the links to generate PDFs when experimenting and so on.
But with no effort!
I always see the following urls:
1.) I call this webpage http://www.gessso.de/orga/datenschutz.html
2.) The link which is connected with the PDF-icon is:
http://www.gessso.de/pdf/orga/datenschutz.pdf
3.) When I click on it, the url will be redirected to the home page and the homepage appears in a separate browser window.
Strange thing: According to the PDF-link on your Phoca-PDF demo site, I have used this url:
http://www.gessso.de/orga/datenschutz.h ... t=phocapdf
And immediately the PDF has been generated correctly. So I see that Phoca is able to work. But the URLs on the icons are wrong.
This behaviour will keep constant regardless of the settings in the Phoca-PDF-plugin or the additional lines in .htaccess or purging SEF URLs in sH404SEF.
BTW: I have disabled the SEF-URL generation in sH404SEF for Phoca-PDF, but also without success.
How can I find out, what is going wrong here and correct it?
Kind regards
Clemens