http://weblogtoolscollection.com/plugin ... atic-jack/
http://jackborn.com/blog/static-jack/
Kód: Vybrat vše
Static Jack is a neat little plugin that makes it incredibly easy to upload html, php files, and other file types to a WordPress 1.5.1.2+ powered website and have the “static” content automagically wrapped in the blog skin, theme, or template… depending on your lexicon of choice.
Pro Wordpress 2.0+ je v readme napsaný trochu jiný postup, ze kterého vyplývá, že mod-rewrite snad ani není nutný.
Moc tomu nerozumím, každopádně toho výsledku, co plugin přináší, bych chtěl dosáhnout.
http://jackborn.com/blog/installation-for-static-jack/ - toto je postup dle readme pro WordPress 1.5, já jedu momentálně na 2.0.1
postup z readme pro 2.0:
pro starší verzi 1.5:There is no need to change any of the WordPress source.
For version 2.0 of WordPress (You haven't upgraded? You really should!)
1. Download staticJack zip archive.
2. Unpack the zip archive using your zip utility of choice.
3. Upload the staticJack.php file to your server -- put in
the WordPress plugin directory found at
wp/
wp-content/
plugins/
Where wp/ is your WordPress directory.
4. Activate the plugin on the Plugins tab of the WordPress
admin console.
3. Add a directory within wp-content directory called 'static'
Directory structure:
wp/
wp-content/
static/
5. If you are using version 2.0 of WordPress (you should) and
you have permalinks on (you should) and you are using the
WordPress 2.0 default permalinks (you should)
<!-- toto má být zřejmě obsah souboru .htaccess, který se má nahrát do rootu instalace Wordpressu, cesty jsem samozřejmě upravil -->
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp/index.php
</IfModule>
(Where wp is your WordPress directory)
***Then you should be done!***
Na rozdíl od instrukcí k verzi 2.0+, zde je navíc uvedená nutná úprava mod_rewrite. Z readme ale nevyplývá, že by u verze 2.0+ toto bylo nutné.
You MUST have permalinks turned on. It doesn't really matter
what structure you create for permalinks. (AFAIK)
You MUST have this in your mod_rewrite of the WordPress root:
RewriteRule ^(.+)$ index.php/$1
A neat trick about the above 'requirement' is that it actually
accomplishes three things:
1- Makes this plugin work properly
2- *Makes it possible to add pages through the WordPress admin
wihout having to constantly revise and update your .htaccess file
or make it world writable! That's a big bonus.
3- It gives you search engine freindly & people friendly urls
I suggest trying this: Remove WP generated code from .htaccess
and replace with this
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php/$1
</IfModule>
Máte s tím někdo nějaké praktické zkušenosti? Internet o tom celkem mlčí...
Když jsem vytvořil podle instrukcí pro 2.0+ .htaccess a nahrál na server, tak mi nešel web. (žádný mod-rewrite jsem podle instrukcí pro 2.0+ neupravoval). Tak trochu se toho bojím
Poskytoval hostingu u mně mod-rewrite a .htaccess podporuje.
Máte něco k věci?
