Tag Archives: .htaccess

WordPress having .htaccess permalink problem – page shows 404

I got a serious problem while changing pemalink style in admin settings of wordpress site. It was showing 404 for every posts/pages accept the home page. I really dont know what would be the solution. My dear fellow colouge Russel Vai helped me to solve this problem. The problem was with the .htaccess file in base path. So if this problem arrise first check the base path in .htaccess file. Though we figured it out later. We did some other process earlier and got it right. We first took a backup of the .htaccess file and deleted it from the server with ftp. Then we set the permalink in default mode and changed to it to my desired custom mood later. And it returns the posts/page which shows 404 to actual content. What it did actually it regenarate the .htaccess file automatically while changing the permalinks type in admin panel.

Turn on / off for $register_globals by .htaccess file, “change from php4 to php5″

  1. Create a  file called .htaccess with any editor (like WordPad or Notes or dreamweaver or anyting).
  2. Add the following line in .htaccess:
    php_flag register_globals on
  3. Upload the file to your web hosting account(generally inside of public_html folder). Make sure the name of the file dosen’t have any kind of extension. The file name should be only .htaccess

Fell free to ask about it….