okay… i found out what was wrong.. it has nothing to do with replacing codes or anything.. i simply forgot to tell apache to read the .htaccess file in wordpress. i didnt know using permalinks required .htaccess files to be read and the manual did not mention of allowing .htaccess files to be read in wordpress.. i wrote this into my apache conf file and that solved everything
<Directory “D:/Webserver/HTTP Server/wordpress”>
AllowOverride Options FileInfo
</Directory>
sorry for the bad grammar… it’s 3:30am and i’m getting sleepy… not thinking straight…