Archive

Posts Tagged ‘wordpress’

Blog upgraded to Wordpress 2.7 Coltrane

December 19th, 2008

Maybe a little bit late, but the CryptoNet blog has been upgraded to Wordpress 2.7 named “Coltrane”. The public part isn’t that much of a difference in comparison to version 2.6, but the administration panel blows you away!

Administration panel

Administration panel

You can read the entire story behind 2.7 on the Wordpress website. If you have a Wordpress blog, I suggest that you do not longer wait to upgrade.

Algemeen ,

Integreer Wordpress in een Symfony website

February 28th, 2008

De Symfony community mag dan wel een eigen blog plugin ontwikkeld hebben, toch kan de voorkeur van de webmaster uitgaan naar een uitgebreider blog-instrument, zoals Wordpress.

Symfony is echter zo opgebouwd, dat alle urls opgevangen worden door een routing bestand (routing.yml), dat de link omzet en intern doorstuurt naar de juiste module en actie. http://www.cryptonet.be/portfolio wordt doorgestuurd naar de portfolio module, en een bepaalde actie (meestal executeIndex). Wanneer men nu een voorgemaakte applicatie wilt integreren, zal deze geen gebruik maken van de symfony modules en acties. Om het externe script toch toegankelijk te maken, dienen we het htaccess bestand aan te passen:

Options +FollowSymLinks +ExecCGI
RewriteEngine On

# uncomment the following line, if you are having trouble
# getting no_script_name to work
# RewriteBase /

# we skip all files with .something
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]

# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f

# no, so we redirect to our front web controller
RewriteRule ^blog/wp-admin/(.*)$ /blog/wp-admin/index.php [L]
RewriteRule ^blog/(.*)$ /blog/index.php [L]
RewriteRule ^(.*)$ index.php [QSA,L]

Op deze manier wordt de blog url niet naar de Symfony engine doorgestuurd, maar onmiddellijk naar de Wordpress blog directory.

Programmatie , , , ,