Permalink Doesnt Work – URL Not Found

My head like wanna explode because of this problem.
However I just solved the problem.

the problem is here

$content = base64_decode('IyBCRUdJTiBXb3JkUHJlc3MKPElmTW9kdWxlIG1vZF9yZXdyaXRlLmM+ClJld3JpdGVFbmdpbmUgT24KUmV3cml0ZUJhc2UgLwpSZXdyaXRlUnVsZSBeaW5kZXhcLnBocCQgLSBbTF0KUmV3cml0ZUNvbmQgJXtSRVFVRVNUX0ZJTEVOQU1FfSAhLWYKUmV3cml0ZUNvbmQgJXtSRVFVRVNUX0ZJTEVOQU1FfSAhLWQKUmV3cml0ZVJ1bGUgLiAvaW5kZXgucGhwIFtMXQo8L0lmTW9kdWxlPgoKIyBFTkQgV29yZFByZXNzCg==');

if you decode the String, you will get a text(string) which is exactly just like in .htaccess file.

if you modify the .htaccess directly from the file, you will get the problem, so you must modify the .htaccess through the code.. you can modify like this.

what I do is,

$content="# BEGIN WordPress\n<IfModule mod_rewrite.c>\nRewriteEngine On\nRewriteBase /projects/klmuc/\nRewriteRule ^index\.php$ - [L]\nRewriteCond \n{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . /projects/klmuc/index.php [L]\n</IfModule>\n\n# END WordPress";

My problem now is SOLVED!

huh!