|
Written by Joe
|
|
Tuesday, 10 February 2009 03:54 |
|
Some tips and frequently asked questions on Joomla plugin Content static.
- How to store all generated html into cache fold?
1.Set parameter " Joomla base dir' to cache directory.
For example, if you install Joomla on C:\wamp\www(or \var\www),
please set "Joomla base dir"as C:\wamp\www\cache (or \var\www\cache).
2.Add the following two lines to .htaccess
RewriteCond %{DOCUMENT_ROOT}/cache/%{REQUEST_URI} -f
RewriteRule (.*) /cache/$1 [L]
The above two lines should just after "RewriteEngine On" and before the Joomla core rewrite section
- Must the url end with ".html"?
Not realy. If your urls don't end with ".html", please add the following
DefaultType text/html to the top of .htaccess file
- How do I know the Content static plugin has taken effect?
For example, I have a article with url
http://www.eboga.org/cms/joomla/tips-and-frequently-asked-questions-on-content-static.html
Please check the /cms/joomla/tips-and-frequently-asked-questions-on-content-static.html has been created.
And rename Joomla's entrance index.php to index.php.bak, you still can access the url with browser.
Which means the file no longer depends on Joomla now.
- Does Content static alter database?
No, the content static don't have database operation
- If I don't want the Content Static, how can I uninstall it?
Please disable the plugin(or uninstall the plugin), and remove all generated html files.
- Why I get Warning:" fopen(/www/htdocs/index.php/index.html) [function.fopen]: failed to open stream: No such file or directory"?
You url includes index.php. It is impossible to take index.php as a file and a directory at the same time.
|