Archive

Posts Tagged ‘love’

New permalink structure: short wordpress urls

June 11th, 2007 bodom_lx No comments

As you maybe already know, my permalink structure of the blog was of type http://task3.cc/year/month/day/title-of-the-article/
I’ve just updated the permalink structure to this new one: http://task3.cc/title-of-the-article/

This is nothing difficult, you can set it in Wordpress control panel (Options->Permalinks)

The problem was that, if I just updated the settings in WP control panel, all the links which pointed to my articles, written in forums, mailing lists, etc, would have been broken. I needed a mod_rewrite rule. And I’m a noob about mod_rewriting.
After some googling, I found this awesome mod_rewrite Cheat Sheet which brought me to the solution (after about 30 x /etc/init.d/apache2 reload :-) ):


RewriteEngine On
RewriteBase /
RewriteRule ^200[0-9]/[0-1][0-9]/[0-3][0-9]/(.*)/$ $1/ [R,NC,L]
RewriteRule ^200[0-9]/[0-1][0-9]/[0-3][0-9]/(.*)$ $1/ [R,NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


You just need to add two new lines in your mod_rewrite rules, as you see:

RewriteRule ^200[0-9]/[0-1][0-9]/[0-3][0-9]/(.*)/$ $1/ [R,NC,L]
RewriteRule ^200[0-9]/[0-1][0-9]/[0-3][0-9]/(.*)$ $1/ [R,NC,L]

The line basically means:
take the urls which starts with a year (200x) / continue with a month / continue again with a day / contain some text / (with or without the final slash / )
re_write the url just like this: /contain some text/

Yeap, it works! You can try it!
This is my famous article about thermal problems of Amd Turion X2 cpus and Linux (this is the link that Google knows) http://task3.cc/2006/12/02/hp-nx6325-and-friends-thermal-problems-solved/
The link will be redirected to http://task3.cc/hp-nx6325-and-friends-thermal-problems-solved/.

Cool, isn’t that? In this way, you can change your permalinks structure without loosing your google rank :-P

Related posts

Auguri Amore!!!

April 8th, 2007 bodom_lx 2 comments

Oggi tutti quanti festeggiano Pasqua, io invece festeggio 365 fantastici giorni insieme a te!
..Grazie di tutto, angelo mio..

BLU_LOVE_by_Benny_Danny.jpg

TI AMO DA MORIRE!!!

Related posts

Categories: Misc Tags: , ,

Installare XGL con schede ATI

August 4th, 2006 bodom_lx 15 comments

Dopo settimane di tentativi, e di forum spulciati, sono finalmente riuscito a far funzionare Xgl sul mio portatile con una scheda video ati mobility x300.

Questa guida dovrebbe funzionare per tutte le schede video ATI, in particolare, per le schede serie x****, leggere bene anche la fine dell’how-to
Le informazioni per questo how-to sono state tratte da più siti, che cito ora per correttezza:

Per motivi di spazio, è necessario clickare qui sotto per continuare a leggere l’articolo su una pagina estesa.

Read more…

Related posts

Dedicato al mio amore..

June 4th, 2006 bodom_lx 3 comments

..Mi ero promesso di non usare mai questo blog per cose del genere, ma quando ci vuole, ci vuole.. E lo scrivo con tutto me stesso..

Silvia, ti voglio tanto bene..

..Sei la mia vita..

..E ti voglio per sempre..

A big heart for my love

Related posts

Categories: Misc Tags: , , , ,