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.
- Create a file called .htaccess with any editor (like WordPad or Notes or dreamweaver or anyting).
- Add the following line in .htaccess:
php_flag register_globals on
- 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….