1

CodeIgniter SEO htaccess fix

- Kıbrıs

I am using CodeIgniter php framework for built fast and secure PHP applications. It is really bad at SEO default. So i have to make a little work. But when you use the famous htaccess trick you will get tons of 404 errors. You have to add directory or file to prevent 404. See how:

Standart .htaccess file

RewriteEngine on
RewriteCond $1 !^(index\.php|img|en|font|banners|uploads|fancybox|userPictures|images|css|js|robots\.txt|Common.xsd|facebook) *dosya ve klasörler buraya ekleniyordu
RewriteRule ^(.*)$ index.php/$1 [L]

I have to add files or dir to RewriteCond. At the and i found a htaccess fix .

# Enable Rewrite Engine
# ——————————
RewriteEngine On
RewriteBase /

# Redirect index.php Requests
# ——————————
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{THE_REQUEST} !/system/.*
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]

# Standard ExpressionEngine Rewrite
# ——————————
RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

0

“You do not have sufficient permissions to access this page.” WordPress Error

- Kıbrıs

Did you change the prefix of your table names in WordPress after the migration?

In my old database, I used ‘wp_’ as my prefix. As I migrated, I decide to use ‘wp3_’ instead of ‘wp_’. Unfortunately, the meta_key values are tied down to:

wp_user_level
wp_capabilities
wp_autosave_draft_ids

I need to update it to

wp3_user_level
wp3_capabilities
wp3_autosave_draft_ids

I wrote an SQL statement to share, just replace ‘prefix_’ with your new WordPress prefix. The following statements go to ‘meta_key’ and does a string replace from ‘wp_’ to ‘prefix_’.

UPDATE `prefix_usermeta` SET `meta_key` = REPLACE( `meta_key` , ‘wp_’, ‘prefix_’ );

(Make sure you do backups first! Note that the quotes used for string and field name are different.)

In the options table, there is ‘wp_user_roles’, make sure you get that changed into ‘prefix_user_roles’.

UPDATE `prefix_options` SET `option_name` = ‘prefix_user_roles’ WHERE `option_name` =’wp_user_roles’ AND `blog_id` =0;

(Make sure you do backups first! Note that the quotes used for string and field name are different.)

With everything set, I tried logging in again and it worked. A happy WordPress user once again. I am using WordPress 2.2.2 before the migration and I did not upgrade WordPress during the migration. Hope it helps. (Applies to WordPress 2.3.3 also, lately, it seems to be working for WordPress 2.9 also.)

1

Speed up With Google pageSpeed

- Kıbrıs

You can use pagespeed plugin to make your website faster

http://code.google.com/speed/page-speed/

0

Şoförsen bas gaza, aşıksan vur saza

- Kıbrıs

Çiçek Abbas’tan bir alıntı

1

Meksika Biberi ile Zayıflama

- Kıbrıs

Acı bitkinin kendini korumasıdır. Yani doğal hayattan bir otçul gelip kendini yemesin diye acı saldılar. Bir nevi zehirdir. “Peki neden acı yüzünden ölmüyoruz?” dediğinizi duyar gibiyim. Tabiki acının insanda olumlu etkileri de var ve bu zehir tamamen ölümcül değil. Ama zararlı ve tercih edilmemesi gereken bir metod. Ölmeme sebebimiz ise alışkanlıktan geliyor. Küçükken acıya alışan mide (ki kendisi mide asidine bile dayanıklıdır) acıya da dayanıyor. Meksika gibi alışkın olmadığımız biz acı işte bu yüzden daha zararlı, çünkü onu çocukluğumudan beri yemiyoruz.